mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 18:04:49 -04:00
Use inline type hints in tests/
(#10350)
This PR is tantamount to running: python3.8 -m com2ann -v 6 tests/ (com2ann requires python 3.8 to run)
This commit is contained in:
parent
89cfc3dd98
commit
93729719b8
18 changed files with 62 additions and 63 deletions
|
@ -23,13 +23,13 @@ class TestHtmlParser(HTMLParser):
|
|||
super().__init__()
|
||||
|
||||
# a list of links found in the doc
|
||||
self.links = [] # type: List[str]
|
||||
self.links: List[str] = []
|
||||
|
||||
# the values of any hidden <input>s: map from name to value
|
||||
self.hiddens = {} # type: Dict[str, Optional[str]]
|
||||
self.hiddens: Dict[str, Optional[str]] = {}
|
||||
|
||||
# the values of any radio buttons: map from name to list of values
|
||||
self.radios = {} # type: Dict[str, List[Optional[str]]]
|
||||
self.radios: Dict[str, List[Optional[str]]] = {}
|
||||
|
||||
def handle_starttag(
|
||||
self, tag: str, attrs: Iterable[Tuple[str, Optional[str]]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue