Skip to content

Commit 247dc15

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 member access. GitPython does not generally use pyright as part of development at this time, but I am checking some code with it during the process of writing the new tests.)
1 parent 45c128b commit 247dc15

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/deprecation/test_attributes.py

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
from typing_extensions import assert_type
1212

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

1523

1624
def test_cannot_access_undefined() -> None:

0 commit comments

Comments
 (0)