Update various comments now non-types dependencies are allowed (#9527)

This commit is contained in:
Avasam
2023-01-14 08:20:04 -05:00
committed by GitHub
parent cd56735bf0
commit 1a9aa3f3fe
9 changed files with 19 additions and 16 deletions

View File

@@ -1,10 +1,12 @@
# Partial typing of the vendored modulegraph package.
# We reference the vendored package rather than depending on the original untyped module.
# Anything not referenced in the PyInstaller stubs doesn't need to be added here.
from typing import Any, Protocol
class _SupportsGraphident(Protocol):
graphident: str
# TODO: For typing purposes, once #5768 is complete, it'll be easier to use the modulegraph package directly.
# code, filename and packagepath are always initialized to None. But they can be given a value later.
class Node:
# Compiled code. See stdlib.builtins.compile