Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2024
1 parent 8c4ae42 commit 877a5db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,7 +2088,11 @@ def _check_class_method_for_bad_typevars(
):
self._Y019_error(method, cls_typevar)

def check_self_typevars(self, node: ast.FunctionDef | ast.AsyncFunctionDef, decorator_names: Container[str]) -> None:
def check_self_typevars(
self,
node: ast.FunctionDef | ast.AsyncFunctionDef,
decorator_names: Container[str],
) -> None:
pos_or_keyword_args = node.args.posonlyargs + node.args.args

if not pos_or_keyword_args:
Expand Down Expand Up @@ -2118,7 +2122,9 @@ def check_self_typevars(self, node: ast.FunctionDef | ast.AsyncFunctionDef, deco
)

def check_protocol_param_kinds(
self, node: ast.FunctionDef | ast.AsyncFunctionDef, decorator_names: Container[str]
self,
node: ast.FunctionDef | ast.AsyncFunctionDef,
decorator_names: Container[str],
) -> None:
if "staticmethod" in decorator_names:
relevant_params = node.args.args
Expand Down

0 comments on commit 877a5db

Please sign in to comment.