File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616This way importing anything but the top-level package should not be
1717necessary unless you want to *implement* a parser.
1818"""
19+
1920from __future__ import annotations
2021
2122__all__ = [
Original file line number Diff line number Diff line change @@ -158,13 +158,11 @@ def complete(self) -> ParseResult:
158158
159159class Matcher (abc .ABC , Generic [T ]):
160160 @abc .abstractmethod
161- def __call__ (self , ua : str ) -> Optional [T ]:
162- ...
161+ def __call__ (self , ua : str ) -> Optional [T ]: ...
163162
164163 @property
165164 @abc .abstractmethod
166- def pattern (self ) -> str :
167- ...
165+ def pattern (self ) -> str : ...
168166
169167 @property
170168 def flags (self ) -> int :
Original file line number Diff line number Diff line change @@ -167,8 +167,9 @@ def load_lazy(d: MatchersData) -> Matchers:
167167
168168
169169class FileLoader (Protocol ):
170- def __call__ (self , path : PathOrFile , loader : DataLoader = load_data ) -> Matchers :
171- ...
170+ def __call__ (
171+ self , path : PathOrFile , loader : DataLoader = load_data
172+ ) -> Matchers : ...
172173
173174
174175def load_json (f : PathOrFile , loader : DataLoader = load_data ) -> Matchers :
Original file line number Diff line number Diff line change 1- """Tests UAP-Python using the UAP-core test suite
2- """
1+ """Tests UAP-Python using the UAP-core test suite"""
32
43import dataclasses
54import logging
You can’t perform that action at this time.
0 commit comments