mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
Fix accidentally quoted variable
This commit is contained in:
@@ -462,7 +462,7 @@ class JSONKey(AsyncJSONKey):
|
||||
"""
|
||||
if self.dtype is not dict:
|
||||
raise TypeError("key() can only be used if the datatype is dict")
|
||||
return self.get().get("name", default)
|
||||
return self.get().get(name, default)
|
||||
|
||||
def __setitem__(self, name: str, value: JSON_TYPE) -> None:
|
||||
"""Sets a key inside the JSONKey's value if it is a dict.
|
||||
|
||||
Reference in New Issue
Block a user