Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stubs replace : Any | None with : Incomplete | None #9565

Merged
merged 3 commits into from
Jan 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Manual review
Avasam committed Jan 18, 2023
commit e40a7a765bcf1c78261b121e0127185085556f6b
5 changes: 2 additions & 3 deletions stubs/pyinstaller/PyInstaller/lib/modulegraph/modulegraph.pyi
Original file line number Diff line number Diff line change
@@ -2,16 +2,15 @@
# 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 _typeshed import Incomplete
from typing import Protocol
from typing import Any, Protocol

class _SupportsGraphident(Protocol):
graphident: str

# 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
code: Incomplete | None
code: Any | None
filename: str | None
graphident: str
identifier: str