@@ -37,9 +37,8 @@ def get_metadata(self) -> "Distribution":
3737
3838DEFAULT_EMPTY_DICT : Mapping [str , Any ] = MappingProxyType ({})
3939
40- # TODO: pkginfo isn't typed, and is doing to require a yak-shave to send a PR
41- # since it's on launchpad.
42- class Distribution (pkginfo .distribution .Distribution ): # type: ignore
40+
41+ class Distribution (pkginfo .distribution .Distribution ):
4342 # These are not actually part of the metadata, see PEP 566
4443 setup_requires : Sequence [str ] = ()
4544 tests_require : Sequence [str ] = ()
@@ -68,7 +67,8 @@ class Distribution(pkginfo.distribution.Distribution): # type: ignore
6867 def _getHeaderAttrs (self ) -> Sequence [Tuple [str , str , bool ]]:
6968 # Until I invent a metadata version to include this, do so
7069 # unconditionally.
71- return tuple (super ()._getHeaderAttrs ()) + (
70+ # Stubs are wrong, this does too exist.
71+ return tuple (super ()._getHeaderAttrs ()) + ( # type: ignore[misc]
7272 ("X-Setup-Requires" , "setup_requires" , True ),
7373 ("X-Tests-Require" , "tests_require" , True ),
7474 ("???" , "extras_require" , False ),
0 commit comments