Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit436bcaa

Browse files
committed
Addtype: ignore in test that we can't set USE_SHELL on instances
As with other `type: ignore` comments in the deprecation tests,mypy will detect if it is superfluous (provided warn_unused_ignoresis set to true), thereby enforcing that such code is a static typeerror.
1 parente725c82 commit436bcaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/deprecation/test_cmd_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def test_use_shell_cannot_set_on_instance(
274274
)->None:
275275
instance=Git()
276276
withpytest.raises(AttributeError):
277-
instance.USE_SHELL=value
277+
instance.USE_SHELL=value# type: ignore[misc] # Name not in __slots__.
278278

279279

280280
@pytest.mark.filterwarnings("ignore::DeprecationWarning")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp