Skip to content

Ensure LSP compatibility on arg names in mypy #18356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Dec 29, 2024
commit 07c5813c5a2b2fecaf50957fe3dda94ed78080a3
6 changes: 1 addition & 5 deletions mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1937,11 +1937,7 @@ def anal_var_defs(self, var_defs: Sequence[TypeVarLikeType]) -> list[TypeVarLike
return [self.anal_var_def(vd) for vd in var_defs]

def named_type(
self,
name: str,
args: list[Type] | None = None,
line: int = -1,
column: int = -1,
self, name: str, args: list[Type] | None = None, line: int = -1, column: int = -1
) -> Instance:
node = self.lookup_fully_qualified(name)
assert isinstance(node.node, TypeInfo)
Expand Down
Loading