Skip to content

Commit

Permalink
Fix PYI024
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 4, 2025
1 parent caeec72 commit 7e45fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_versioning.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import collections
import types
import typing

import packaging.version

Expand Down Expand Up @@ -56,7 +56,7 @@ def test_local_revision_not_tagged(self):
mgr = Versioned(
get_tags=lambda rev=None: set(),
get_repo_tags=lambda: {
collections.namedtuple('tag', 'tag')(var)
typing.NamedTuple('Tag', [('tag', typing.Any)])(var)
for var in ['foo', 'bar', '1.0']
},
)
Expand Down

0 comments on commit 7e45fcf

Please sign in to comment.