Skip to content

Commit 4e81b3c

Browse files
py3.8 compatibility fix
1 parent ef26282 commit 4e81b3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aiochclient/types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import datetime as dt
2-
import json
32
import re
43
from abc import ABC, abstractmethod
54
from decimal import Decimal
@@ -322,7 +321,7 @@ def __init__(self, name: str, **kwargs):
322321
self.key_type = what_py_type(tps[:comma_index], container=True)
323322
self.value_type = what_py_type(tps[comma_index + 1 :], container=True)
324323

325-
def p_type(self, string: str) -> dict[Any, Any]:
324+
def p_type(self, string: str) -> dict:
326325
key, value = string[1:-1].split(':', 1)
327326
return {
328327
self.key_type.p_type(self.decode(key.encode())): self.value_type.p_type(

0 commit comments

Comments
 (0)