From 0c8d70daae4c4dfc989edad465db94ffc665416d Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 11 Oct 2022 10:26:55 +0200 Subject: [builder][server] restore compatibility with python 3.7 --- src/hydrilla/url_patterns.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/hydrilla/url_patterns.py') diff --git a/src/hydrilla/url_patterns.py b/src/hydrilla/url_patterns.py index c6330ed..81f65f2 100644 --- a/src/hydrilla/url_patterns.py +++ b/src/hydrilla/url_patterns.py @@ -52,13 +52,13 @@ ParsedUrlType = t.TypeVar('ParsedUrlType', bound='ParsedUrl') @dc.dataclass(frozen=True, unsafe_hash=True, order=True) class ParsedUrl: """....""" - orig_url: str # used in __hash__() and __lt__() - scheme: str = dc.field(hash=False, compare=False) - domain_labels: tuple[str, ...] = dc.field(hash=False, compare=False) - path_segments: tuple[str, ...] = dc.field(hash=False, compare=False) - query: str = dc.field(hash=False, compare=False) - has_trailing_slash: bool = dc.field(hash=False, compare=False) - port: t.Optional[int] = dc.field(hash=False, compare=False) + orig_url: str # used in __hash__() and __lt__() + scheme: str = dc.field(hash=False, compare=False) + domain_labels: t.Tuple[str, ...] = dc.field(hash=False, compare=False) + path_segments: t.Tuple[str, ...] = dc.field(hash=False, compare=False) + query: str = dc.field(hash=False, compare=False) + has_trailing_slash: bool = dc.field(hash=False, compare=False) + port: t.Optional[int] = dc.field(hash=False, compare=False) @property def url_without_path(self) -> str: -- cgit v1.2.3