diff --git a/libcst/_nodes/base.py b/libcst/_nodes/base.py index d9689f8f8..61161923d 100644 --- a/libcst/_nodes/base.py +++ b/libcst/_nodes/base.py @@ -341,7 +341,7 @@ def deep_clone(self: _CSTNodeSelfT) -> _CSTNodeSelfT: True """ cloned_fields: Dict[str, object] = {} - for field in fields(self): + for field in fields(self): # noqa: F402 key = field.name if key[0] == "_": continue diff --git a/libcst/_parser/conversions/params.py b/libcst/_parser/conversions/params.py index 9ac7f1d16..311ea02f3 100644 --- a/libcst/_parser/conversions/params.py +++ b/libcst/_parser/conversions/params.py @@ -102,7 +102,7 @@ def convert_argslist( # noqa: C901 kwonly_params: List[Param] = [] star_kwarg: Optional[Param] = None - def add_param( + def add_param( # noqa: C901 current_param: Optional[List[Param]], param: Union[Param, ParamStar] ) -> Optional[List[Param]]: nonlocal star_arg