File tree Expand file tree Collapse file tree 5 files changed +33
-15
lines changed
pybind11-master/numpy-array-use-type-var/demo/_bindings
pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings
pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings
python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings
python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings Expand file tree Collapse file tree 5 files changed +33
-15
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import typing
4+
35__all__ = [
46 "Enum" ,
57 "Unbound" ,
@@ -16,8 +18,8 @@ class Enum:
1618class Unbound :
1719 pass
1820
19- def accept_unbound_enum (arg0 : ... ) -> int : ...
21+ def accept_unbound_enum (arg0 : typing . Annotated [ typing . Any , ...] ) -> int : ...
2022def 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 : ...
2224def accept_unbound_type_defaulted (x : Unbound = ...) -> int : ...
23- def get_unbound_type () -> ... : ...
25+ def get_unbound_type () -> typing . Annotated [ typing . Any , ...] : ...
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import typing
4+
35__all__ = [
46 "Enum" ,
57 "Unbound" ,
@@ -16,8 +18,8 @@ class Enum:
1618class Unbound :
1719 pass
1820
19- def accept_unbound_enum (arg0 : ... ) -> int : ...
21+ def accept_unbound_enum (arg0 : typing . Annotated [ typing . Any , ...] ) -> int : ...
2022def 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 : ...
2224def accept_unbound_type_defaulted (x : Unbound = ...) -> int : ...
23- def get_unbound_type () -> ... : ...
25+ def get_unbound_type () -> typing . Annotated [ typing . Any , ...] : ...
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ import typing
4+
35__all__ = [
46 "Enum" ,
57 "Unbound" ,
@@ -16,8 +18,8 @@ class Enum:
1618class Unbound :
1719 pass
1820
19- def accept_unbound_enum (arg0 : ... ) -> int : ...
21+ def accept_unbound_enum (arg0 : typing . Annotated [ typing . Any , ...] ) -> int : ...
2022def 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 : ...
2224def accept_unbound_type_defaulted (x : Unbound = ...) -> int : ...
23- def get_unbound_type () -> ... : ...
25+ def get_unbound_type () -> typing . Annotated [ typing . Any , ...] : ...
Original file line number Diff line number Diff line change 11from __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:
1620class Unbound :
1721 pass
1822
19- def accept_unbound_enum (arg0 : ... ) -> int : ...
23+ def accept_unbound_enum (arg0 : typing_extensions . Annotated [ typing . Any , ...] ) -> int : ...
2024def 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 : ...
2228def accept_unbound_type_defaulted (x : Unbound = ...) -> int : ...
23- def get_unbound_type () -> ... : ...
29+ def get_unbound_type () -> typing_extensions . Annotated [ typing . Any , ...] : ...
Original file line number Diff line number Diff line change 11from __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:
1620class Unbound :
1721 pass
1822
19- def accept_unbound_enum (arg0 : ... ) -> int : ...
23+ def accept_unbound_enum (arg0 : typing_extensions . Annotated [ typing . Any , ...] ) -> int : ...
2024def 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 : ...
2228def accept_unbound_type_defaulted (x : Unbound = ...) -> int : ...
23- def get_unbound_type () -> ... : ...
29+ def get_unbound_type () -> typing_extensions . Annotated [ typing . Any , ...] : ...
You can’t perform that action at this time.
0 commit comments