Skip to content

Conversation

craymichael
Copy link
Contributor

Summary: Misc fixes to remaining mypy errors

Differential Revision: D64518879

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64518879

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64518879

craymichael added a commit to craymichael/captum that referenced this pull request Oct 17, 2024
Summary:
Pull Request resolved: pytorch#1383

Misc fixes to remaining mypy errors

Reviewed By: vivekmig

Differential Revision: D64518879
craymichael and others added 3 commits October 20, 2024 14:46
…atched" + minor typing fixes

Summary: Many overloads produced false positives or required changing order due to mypy breaking ties by picking the first matching variant (https://mypy.readthedocs.io/en/stable/more_types.html). This fixes or suppresses these errors. Created T204932142 to address Literal-related issues.

Differential Revision: D64517613
Summary:
Add stacklevel to silence flake8:

Warning  (FLAKE8) B028
    No explicit stacklevel argument found. The warn method from the warnings

stacklevel=1 default, stacklevel=2 in some spots that user might need more context

Differential Revision: D64518463
Summary:
Pull Request resolved: pytorch#1383

Misc fixes to remaining mypy errors

Reviewed By: vivekmig

Differential Revision: D64518879
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64518879

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ed5daa3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants