Skip to content

Add missing type annotations to the primitives.pyi fixture #15871

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

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions test-data/unit/fixtures/primitives.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class object:
def __ne__(self, other: object) -> bool: pass

class type:
def __init__(self, x) -> None: pass
def __init__(self, x: object) -> None: pass

class int:
# Note: this is a simplification of the actual signature
Expand All @@ -30,7 +30,7 @@ class str(Sequence[str]):
def __iter__(self) -> Iterator[str]: pass
def __contains__(self, other: object) -> bool: pass
def __getitem__(self, item: int) -> str: pass
def format(self, *args, **kwargs) -> str: pass
def format(self, *args: object, **kwargs: object) -> str: pass
class bytes(Sequence[int]):
def __iter__(self) -> Iterator[int]: pass
def __contains__(self, other: object) -> bool: pass
Expand Down