| |
@@ -0,0 +1,36 @@
|
| |
+ diff -Naur signature_dispatch-1.0.1-original/pyproject.toml signature_dispatch-1.0.1/pyproject.toml
|
| |
+ --- signature_dispatch-1.0.1-original/pyproject.toml 2023-03-15 13:13:04.468334400 -0400
|
| |
+ +++ signature_dispatch-1.0.1/pyproject.toml 2023-05-12 10:33:28.280594268 -0400
|
| |
+ @@ -10,7 +10,7 @@
|
| |
+ description-file = 'README.rst'
|
| |
+ requires-python = "~=3.7"
|
| |
+ requires = [
|
| |
+ - 'typeguard~=3.0',
|
| |
+ + 'typeguard~=4.0',
|
| |
+ ]
|
| |
+ classifiers = [
|
| |
+ 'Programming Language :: Python :: 3',
|
| |
+ diff -Naur signature_dispatch-1.0.1-original/README.rst signature_dispatch-1.0.1/README.rst
|
| |
+ --- signature_dispatch-1.0.1-original/README.rst 2023-03-15 13:13:04.468334400 -0400
|
| |
+ +++ signature_dispatch-1.0.1/README.rst 2023-05-12 10:33:28.280594268 -0400
|
| |
+ @@ -94,16 +94,16 @@
|
| |
+ TypeError: can't dispatch the given arguments to any of the candidate functions:
|
| |
+ arguments: 'a'
|
| |
+ candidates:
|
| |
+ - (x: int): type of x must be int; got str instead
|
| |
+ - (x: List[int]): type of x must be a list; got str instead
|
| |
+ + (x: int): x: str is not an instance of int
|
| |
+ + (x: List[int]): x: str is not a list
|
| |
+ >>> f2(['a'])
|
| |
+ Traceback (most recent call last):
|
| |
+ ...
|
| |
+ TypeError: can't dispatch the given arguments to any of the candidate functions:
|
| |
+ arguments: ['a']
|
| |
+ candidates:
|
| |
+ - (x: int): type of x must be int; got list instead
|
| |
+ - (x: List[int]): type of x[0] must be int; got str instead
|
| |
+ + (x: int): x: list is not an instance of int
|
| |
+ + (x: List[int]): x: item 0 of list is not an instance of int
|
| |
+
|
| |
+ Details
|
| |
+ =======
|
| |
Supports (only) version
34 oftypeguard
.Merge and build in a side tag with https://src.fedoraproject.org/rpms/python-typeguard/pull-request/3.