Skip to content
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

Set up mypy #482

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Set up mypy #482

merged 1 commit into from
Jul 2, 2024

Conversation

JelleZijlstra
Copy link
Collaborator

@JelleZijlstra JelleZijlstra commented Jul 2, 2024

This is minimal for now (didn't add any annotations, didn't turn on strict mode),
just so we can get started. In later PRs I can add more strictness.

Issue #478

This is minimal for now (didn't add any annotations, didn't turn on strict mode),
just so we can get started. In later PRs I can add more strictness.
b902_classmethod_decorators = attr.ib(factory=set)
node_window = attr.ib(factory=list)
errors = attr.ib(factory=list)
futures = attr.ib(factory=set)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused

@@ -657,10 +656,6 @@ def check_for_b005(self, node):
):
return # used arguments don't match the builtin strip

call_path = ".".join(compose_call_path(node.func.value))
if call_path in B005.valid_paths:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was empty and I'm not sure what it was meant for so I removed it.

Copy link
Collaborator

@cooperlees cooperlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks Jelle!

@cooperlees cooperlees merged commit b15feed into PyCQA:main Jul 2, 2024
7 checks passed
@JelleZijlstra JelleZijlstra deleted the typecheck branch July 2, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants