Skip to content

Commit a4bde3f

Browse files
committed
chore: Update stubs
1 parent d04d1cc commit a4bde3f

File tree

5 files changed

+33
-15
lines changed

5 files changed

+33
-15
lines changed

tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/flawed_bindings.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import typing
4+
35
__all__ = [
46
"Enum",
57
"Unbound",
@@ -16,8 +18,8 @@ class Enum:
1618
class Unbound:
1719
pass
1820

19-
def accept_unbound_enum(arg0: ...) -> int: ...
21+
def accept_unbound_enum(arg0: typing.Annotated[typing.Any, ...]) -> int: ...
2022
def accept_unbound_enum_defaulted(x: Enum = ...) -> int: ...
21-
def accept_unbound_type(arg0: tuple[..., int]) -> int: ...
23+
def accept_unbound_type(arg0: tuple[typing.Annotated[typing.Any, ...], int]) -> int: ...
2224
def accept_unbound_type_defaulted(x: Unbound = ...) -> int: ...
23-
def get_unbound_type() -> ...: ...
25+
def get_unbound_type() -> typing.Annotated[typing.Any, ...]: ...

tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/flawed_bindings.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import typing
4+
35
__all__ = [
46
"Enum",
57
"Unbound",
@@ -16,8 +18,8 @@ class Enum:
1618
class Unbound:
1719
pass
1820

19-
def accept_unbound_enum(arg0: ...) -> int: ...
21+
def accept_unbound_enum(arg0: typing.Annotated[typing.Any, ...]) -> int: ...
2022
def accept_unbound_enum_defaulted(x: Enum = ...) -> int: ...
21-
def accept_unbound_type(arg0: tuple[..., int]) -> int: ...
23+
def accept_unbound_type(arg0: tuple[typing.Annotated[typing.Any, ...], int]) -> int: ...
2224
def accept_unbound_type_defaulted(x: Unbound = ...) -> int: ...
23-
def get_unbound_type() -> ...: ...
25+
def get_unbound_type() -> typing.Annotated[typing.Any, ...]: ...

tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/flawed_bindings.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import typing
4+
35
__all__ = [
46
"Enum",
57
"Unbound",
@@ -16,8 +18,8 @@ class Enum:
1618
class Unbound:
1719
pass
1820

19-
def accept_unbound_enum(arg0: ...) -> int: ...
21+
def accept_unbound_enum(arg0: typing.Annotated[typing.Any, ...]) -> int: ...
2022
def accept_unbound_enum_defaulted(x: Enum = ...) -> int: ...
21-
def accept_unbound_type(arg0: tuple[..., int]) -> int: ...
23+
def accept_unbound_type(arg0: tuple[typing.Annotated[typing.Any, ...], int]) -> int: ...
2224
def accept_unbound_type_defaulted(x: Unbound = ...) -> int: ...
23-
def get_unbound_type() -> ...: ...
25+
def get_unbound_type() -> typing.Annotated[typing.Any, ...]: ...

tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/flawed_bindings.pyi

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from __future__ import annotations
22

3+
import typing
4+
5+
import typing_extensions
6+
37
__all__ = [
48
"Enum",
59
"Unbound",
@@ -16,8 +20,10 @@ class Enum:
1620
class Unbound:
1721
pass
1822

19-
def accept_unbound_enum(arg0: ...) -> int: ...
23+
def accept_unbound_enum(arg0: typing_extensions.Annotated[typing.Any, ...]) -> int: ...
2024
def accept_unbound_enum_defaulted(x: Enum = ...) -> int: ...
21-
def accept_unbound_type(arg0: tuple[..., int]) -> int: ...
25+
def accept_unbound_type(
26+
arg0: tuple[typing_extensions.Annotated[typing.Any, ...], int]
27+
) -> int: ...
2228
def accept_unbound_type_defaulted(x: Unbound = ...) -> int: ...
23-
def get_unbound_type() -> ...: ...
29+
def get_unbound_type() -> typing_extensions.Annotated[typing.Any, ...]: ...

tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/flawed_bindings.pyi

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from __future__ import annotations
22

3+
import typing
4+
5+
import typing_extensions
6+
37
__all__ = [
48
"Enum",
59
"Unbound",
@@ -16,8 +20,10 @@ class Enum:
1620
class Unbound:
1721
pass
1822

19-
def accept_unbound_enum(arg0: ...) -> int: ...
23+
def accept_unbound_enum(arg0: typing_extensions.Annotated[typing.Any, ...]) -> int: ...
2024
def accept_unbound_enum_defaulted(x: Enum = ...) -> int: ...
21-
def accept_unbound_type(arg0: tuple[..., int]) -> int: ...
25+
def accept_unbound_type(
26+
arg0: tuple[typing_extensions.Annotated[typing.Any, ...], int]
27+
) -> int: ...
2228
def accept_unbound_type_defaulted(x: Unbound = ...) -> int: ...
23-
def get_unbound_type() -> ...: ...
29+
def get_unbound_type() -> typing_extensions.Annotated[typing.Any, ...]: ...

0 commit comments

Comments
 (0)