Skip to content

Commit d08a576

Browse files
committed
Clarify todo
1 parent 7f4a191 commit d08a576

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/deprecation/test_attributes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_util_alias_import_resolves() -> None:
3131

3232
def test_util_alias_members_resolve() -> None:
3333
"""git.index.util members can be accessed via git.util, and mypy recognizes it."""
34-
# TODO: When typing_extensions is made a test dependency, use assert_type for this.
3534
gu_tfs = git.util.TemporaryFileSwap
3635
from git.index.util import TemporaryFileSwap
3736

@@ -41,8 +40,10 @@ def accepts_tfs_type(t: Type[TemporaryFileSwap]) -> None:
4140
def rejects_tfs_type(t: Type[git.Git]) -> None:
4241
pass
4342

43+
# TODO: When typing_extensions is made a test dependency, use assert_type for this.
4444
accepts_tfs_type(gu_tfs)
4545
rejects_tfs_type(gu_tfs) # type: ignore[arg-type]
46+
4647
assert gu_tfs is TemporaryFileSwap
4748

4849

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy