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

Commitb05963c

Browse files
committed
Expand and clarify test module docstring
About why there are so many separate mypy suppressions even whenthey could be consolidated into a smaller number in some places.
1 parent247dc15 commitb05963c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎test/deprecation/test_attributes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
"""Tests for dynamic and static attribute errors in GitPython's top-level git module.
22
33
Provided mypy has ``warn_unused_ignores = true`` set, running mypy on these test cases
4-
checks static typing of the code under test. (Running pytest checks dynamic behavior.)
4+
checks static typing of the code under test. This is the reason for the many separate
5+
single-line attr-defined suppressions, so those should not be replaced with a smaller
6+
number of more broadly scoped suppressions, even where it is feasible to do so.
7+
8+
Running pytest checks dynamic behavior as usual.
59
"""
610

711
fromitertoolsimportgroupby

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp