Skip to content

Commit 8a2ff7a

Browse files
committed
Support typing.assert_type.
* Aliases typing.assert_type to our assert_type pseudo-builtin. * Removes single-argument assert_type form. This functionality didn't make it into the typing library variant. I don't think it's used much anyway, given that pytype_extensions.assert_type doesn't support it at runtime, and no one's ever noticed. PiperOrigin-RevId: 577000283
1 parent dc50f2b commit 8a2ff7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytype_extensions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def assert_type(__x, __t) -> None: # pylint: disable=invalid-name
180180
Usage example:
181181
182182
```
183-
import pytype_extensinos
183+
import pytype_extensions
184184
assert_type = pytype_extensions.assert_type
185185
186186
x = 3

0 commit comments

Comments
 (0)