Skip to content

Commit

Permalink
py3.8 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maximdanilchenko authored Feb 13, 2024
1 parent ef26282 commit 4e81b3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aiochclient/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime as dt
import json
import re
from abc import ABC, abstractmethod
from decimal import Decimal
Expand Down Expand Up @@ -322,7 +321,7 @@ def __init__(self, name: str, **kwargs):
self.key_type = what_py_type(tps[:comma_index], container=True)
self.value_type = what_py_type(tps[comma_index + 1 :], container=True)

def p_type(self, string: str) -> dict[Any, Any]:
def p_type(self, string: str) -> dict:
key, value = string[1:-1].split(':', 1)
return {
self.key_type.p_type(self.decode(key.encode())): self.value_type.p_type(
Expand Down

0 comments on commit 4e81b3c

Please sign in to comment.