mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Convert namedtuples to class syntax (#3321)
This commit is contained in:
@@ -4,10 +4,9 @@ import sys
|
||||
import types
|
||||
import unittest
|
||||
|
||||
TestResults = NamedTuple('TestResults', [
|
||||
('failed', int),
|
||||
('attempted', int),
|
||||
])
|
||||
class TestResults(NamedTuple):
|
||||
failed: int
|
||||
attempted: int
|
||||
|
||||
OPTIONFLAGS_BY_NAME: Dict[str, int]
|
||||
def register_optionflag(name: str) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user