Skip to content

Conversation

@craymichael
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

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

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
@facebook-github-bot
Copy link
Contributor

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

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

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

Reviewed By: vivekmig

Differential Revision: D64518463
craymichael and others added 2 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:
Pull Request resolved: meta-pytorch#1382

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

Reviewed By: vivekmig

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fd985a3.

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