3.8-ify one last thing
This commit is contained in:
parent
adb7453e1a
commit
99ea716731
@ -13,7 +13,7 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
from typing import Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
from attr import dataclass
|
from attr import dataclass
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ from .friend_struct import FriendStruct
|
|||||||
@dataclass
|
@dataclass
|
||||||
class FriendSearchUserListStruct(SerializableAttrs):
|
class FriendSearchUserListStruct(SerializableAttrs):
|
||||||
count: int
|
count: int
|
||||||
list: list[FriendStruct]
|
list: List[FriendStruct]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(kw_only=True)
|
@dataclass(kw_only=True)
|
||||||
@ -33,7 +33,7 @@ class FriendSearchStruct(SerializableAttrs):
|
|||||||
query: str
|
query: str
|
||||||
user: Optional[FriendSearchUserListStruct] = None
|
user: Optional[FriendSearchUserListStruct] = None
|
||||||
plus: Optional[FriendSearchUserListStruct] = None
|
plus: Optional[FriendSearchUserListStruct] = None
|
||||||
categories: list[str]
|
categories: List[str]
|
||||||
total_counts: int
|
total_counts: int
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user