Skip to content

Commit

Permalink
Bugfix/request query type (#635)
Browse files Browse the repository at this point in the history
* Extension update: Editor->Modifier, CheckerCategory->ExtensionCategory,etc.

* Revert "Extension update: Editor->Modifier, CheckerCategory->ExtensionCategory,etc."

This reverts commit 7180b42.

* Bugfix: HookedDict assign only match type == dict.
  • Loading branch information
Rena-Yuan authored Apr 7, 2022
1 parent 2187002 commit 3bf635b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lyrebird/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ class HookedDict(dict):

def __init__(self, raw_dict):
for k, v in raw_dict.items():
if isinstance(v, dict):
if type(v) == dict:
if k.lower() == 'headers':
v = CaseInsensitiveDict(v)
else:
v = HookedDict(v)
self.__setitem__(k, v)

def __setitem__(self, __k, __v) -> None:
if isinstance(__v, dict):
if type(__v) == dict:
if __k.lower() == 'headers':
__v = CaseInsensitiveDict(__v)
else:
Expand Down
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (2, 1, 8)
IVERSION = (2, 1, 9)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION

0 comments on commit 3bf635b

Please sign in to comment.