Skip to content

Commit a1fcad5

Browse files
authored
Add missing type annotations to the primitives.pyi fixture (#15871)
This fixes some weird test failures I was seeing locally when trying to run just the tests in `check-enum.test` (invoked via `pytest mypy/test/testcheck.py::TypeCheckSuite::check-enum.test`)
1 parent 11a94be commit a1fcad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/fixtures/primitives.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class object:
1212
def __ne__(self, other: object) -> bool: pass
1313

1414
class type:
15-
def __init__(self, x) -> None: pass
15+
def __init__(self, x: object) -> None: pass
1616

1717
class int:
1818
# Note: this is a simplification of the actual signature
@@ -30,7 +30,7 @@ class str(Sequence[str]):
3030
def __iter__(self) -> Iterator[str]: pass
3131
def __contains__(self, other: object) -> bool: pass
3232
def __getitem__(self, item: int) -> str: pass
33-
def format(self, *args, **kwargs) -> str: pass
33+
def format(self, *args: object, **kwargs: object) -> str: pass
3434
class bytes(Sequence[int]):
3535
def __iter__(self) -> Iterator[int]: pass
3636
def __contains__(self, other: object) -> bool: pass

0 commit comments

Comments
 (0)