MCPcopy Index your code
hub / github.com/python/cpython / requires

Method requires

Lib/importlib/metadata/__init__.py:677–680  ·  view source on GitHub ↗

Generated requirements specified for this Distribution

(self)

Source from the content-addressed store, hash-verified

675
676 @property
677 def requires(self) -> list[str] | None:
678 """Generated requirements specified for this Distribution"""
679 reqs = self._read_dist_info_reqs() or self._read_egg_info_reqs()
680 return reqs and list(reqs)
681
682 def _read_dist_info_reqs(self):
683 return self.metadata.get_all('Requires-Dist')

Callers 15

test_winsound.pyFile · 0.80
test_zipfile64.pyFile · 0.80
test_urllib2net.pyFile · 0.80
test_urllibnet.pyFile · 0.80
setUpModuleFunction · 0.80
test_networkedMethod · 0.80
testZip64LargeFileMethod · 0.80

Calls 3

_read_dist_info_reqsMethod · 0.95
_read_egg_info_reqsMethod · 0.95
listClass · 0.85

Tested by 9

setUpModuleFunction · 0.64
test_networkedMethod · 0.64
testZip64LargeFileMethod · 0.64
setUpClassMethod · 0.64
test_large_file_opsMethod · 0.64