Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions conformance/tests/callables_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ def __call__(self, x: int, /, y: str) -> Any:


def cb11_good1(x: int, /, y: str, z: None = None) -> Any:
pass
raise NotImplementedError


def cb11_good2(x: int, y: str, z: None = None) -> Any:
pass
raise NotImplementedError


def cb11_bad1(x: int, y: str, /) -> Any:
pass
raise NotImplementedError


cb11: Proto11 = cb11_good1 # OK
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/dataclasses_transform_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, *, init: bool = True, default: Any | None = None) -> None:
def model_field(
*, init: bool = True, default: Any | None = None, alias: str | None = None
) -> Any:
...
raise NotImplementedError


@dataclass_transform(
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/dataclasses_transform_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def field1(


def field2(*, init: bool = False, kw_only: bool = True) -> Any:
...
raise NotImplementedError


@dataclass_transform(kw_only_default=True, field_specifiers=(field1, field2))
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/dataclasses_transform_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_model(


def create_model(*args: Any, **kwargs: Any) -> Any:
...
raise NotImplementedError


@create_model(kw_only=False, order=False)
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/dataclasses_transform_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, *, init: bool = True, default: Any | None = None) -> None:
def model_field(
*, init: bool = True, default: Any | None = None, alias: str | None = None
) -> Any:
...
raise NotImplementedError


@dataclass_transform(
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/generics_typevartuple_overloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def transpose(self: "Array[Axis1, Axis2, Axis3]") -> "Array[Axis3, Axis2, Axis1]
...

def transpose(self) -> Any:
pass
raise NotImplementedError


def func1(a: Array[Axis1, Axis2], b: Array[Axis1, Axis2, Axis3]):
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/literals_interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def open(path: _PathType, mode: str) -> IO[Any]:


def open(path: _PathType, mode: Any) -> Any:
pass
raise NotImplementedError


assert_type(open("path", "r"), IO[str])
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/literals_literalstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def func8(x: str) -> A:


def func8(x: Any) -> Any:
...
raise NotImplementedError


assert_type(func8("foo"), C) # First overload
Expand Down
2 changes: 1 addition & 1 deletion conformance/tests/overloads_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def map(


def map(func: Any, iter1: Any, iter2: Any = ...) -> Any:
pass
raise NotImplementedError