mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user