Skip to content
Prev Previous commit
Next Next commit
source_hash has been there in 3.7+
  • Loading branch information
AlexWaygood committed Dec 9, 2021
commit a01b280db90e47508caa2b19c7cdd6207cce08f1
2 changes: 1 addition & 1 deletion stdlib/importlib/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ class LazyLoader(importlib.abc.Loader):
def create_module(self, spec: importlib.machinery.ModuleSpec) -> types.ModuleType | None: ...
def exec_module(self, module: types.ModuleType) -> None: ...

if sys.version_info >= (3, 10):
if sys.version_info >= (3, 7):
def source_hash(source_bytes: bytes) -> int: ...