Replace static assertion that fails with pyright (#10335)

See https://github.com/python/typeshed/pull/10325#issuecomment-1598684045

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2023-06-20 14:56:14 +01:00
committed by GitHub
parent 9e86c6026a
commit 8ec2323c0a

View File

@@ -1,7 +1,6 @@
from __future__ import annotations
import unittest
from collections.abc import Callable
from datetime import datetime, timedelta
from decimal import Decimal
from fractions import Fraction
@@ -114,4 +113,4 @@ class TestXYZ(unittest.TestCase):
assert_type(TestXYZ.attr, int)
assert_type(TestXYZ.method, Callable[[], int])
assert_type(TestXYZ.method(), int)