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

Commit247dc15

Browse files
committed
Add imports so pyright recognizes refs and index
pyright still reports git.util as private, as it should.(mypy does not, or does not by default, report private memberaccess. GitPython does not generally use pyright as part ofdevelopment at this time, but I am checking some code with itduring the process of writing the new tests.)
1 parent45c128b commit247dc15

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎test/deprecation/test_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
fromtyping_extensionsimportassert_type
1212

1313
importgit
14+
importgit.index.base
15+
importgit.index.fun
16+
importgit.index.typ
17+
importgit.refs.head
18+
importgit.refs.log
19+
importgit.refs.reference
20+
importgit.refs.symbolic
21+
importgit.refs.tag
1422

1523

1624
deftest_cannot_access_undefined()->None:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp