We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75670d2 commit 2bfbaf3Copy full SHA for 2bfbaf3
1 file changed
importlib_metadata/_collections.py
@@ -1,4 +1,5 @@
1
import collections
2
+import typing
3
4
5
# from jaraco.collections 3.3
@@ -24,7 +25,10 @@ def freeze(self):
24
25
self._frozen = lambda key: self.default_factory()
26
27
-class Pair(collections.namedtuple('Pair', 'name value')):
28
+class Pair(typing.NamedTuple):
29
+ name: str
30
+ value: str
31
+
32
@classmethod
33
def parse(cls, text):
34
return cls(*map(str.strip, text.split("=", 1)))
0 commit comments