mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import unittest.case
|
||||
import unittest.result
|
||||
from typing import Iterable, Iterator, Union
|
||||
from typing import Iterable, Iterator
|
||||
|
||||
_TestType = Union[unittest.case.TestCase, TestSuite]
|
||||
_TestType = unittest.case.TestCase | TestSuite
|
||||
|
||||
class BaseTestSuite(Iterable[_TestType]):
|
||||
_tests: list[unittest.case.TestCase]
|
||||
|
||||
Reference in New Issue
Block a user