From 7acfed4c62f85acb6d98b4aa836cd8fb78da01bc Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 4 Sep 2024 16:06:39 -1000 Subject: [PATCH] Fix `TypeError` with `MultiDictProxy` and Python 3.8 (#1107) --- CHANGES/1084.bugfix.rst | 1 + CHANGES/1105.bugfix.rst | 1 + CHANGES/1107.bugfix.rst | 1 + yarl/_url.py | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 120000 CHANGES/1084.bugfix.rst create mode 120000 CHANGES/1105.bugfix.rst create mode 100644 CHANGES/1107.bugfix.rst diff --git a/CHANGES/1084.bugfix.rst b/CHANGES/1084.bugfix.rst new file mode 120000 index 000000000..95481dfbb --- /dev/null +++ b/CHANGES/1084.bugfix.rst @@ -0,0 +1 @@ +1107.bugfix.rst \ No newline at end of file diff --git a/CHANGES/1105.bugfix.rst b/CHANGES/1105.bugfix.rst new file mode 120000 index 000000000..95481dfbb --- /dev/null +++ b/CHANGES/1105.bugfix.rst @@ -0,0 +1 @@ +1107.bugfix.rst \ No newline at end of file diff --git a/CHANGES/1107.bugfix.rst b/CHANGES/1107.bugfix.rst new file mode 100644 index 000000000..4f70798b8 --- /dev/null +++ b/CHANGES/1107.bugfix.rst @@ -0,0 +1 @@ +Fixed a :exc:`TypeError` with ``MultiDictProxy`` and Python 3.8 -- by :user:`bdraco`. diff --git a/yarl/_url.py b/yarl/_url.py index 9a429e45b..8faf71984 100644 --- a/yarl/_url.py +++ b/yarl/_url.py @@ -640,7 +640,7 @@ def path(self) -> str: return self._PATH_UNQUOTER(self.raw_path) @cached_property - def query(self) -> MultiDictProxy[str]: + def query(self) -> "MultiDictProxy[str]": """A MultiDictProxy representing parsed query parameters in decoded representation.