From 96ce9666de05125ed998adae02319b350de6c0a0 Mon Sep 17 00:00:00 2001 From: alteralt <109542778+alteralt@users.noreply.github.com> Date: Sun, 31 Jul 2022 00:57:53 +0300 Subject: [PATCH 1/2] Fix --- pyqiwip2p/AioQiwip2p.py | 2 +- pyqiwip2p/Qiwip2p.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqiwip2p/AioQiwip2p.py b/pyqiwip2p/AioQiwip2p.py index e71030f..ee330b6 100644 --- a/pyqiwip2p/AioQiwip2p.py +++ b/pyqiwip2p/AioQiwip2p.py @@ -125,7 +125,7 @@ async def bill( lifetime: int = 30, customer: typing.Union[QiwiCustomer, dict] = None, comment: str = "via pyQiwiP2P (WhiteApfel)", - pay_sources: list[str] = None, + pay_sources: typing.List[str] = None, theme_code: str = None, fields: dict = None, ) -> Bill: diff --git a/pyqiwip2p/Qiwip2p.py b/pyqiwip2p/Qiwip2p.py index 3799059..99762e1 100644 --- a/pyqiwip2p/Qiwip2p.py +++ b/pyqiwip2p/Qiwip2p.py @@ -115,7 +115,7 @@ def bill( lifetime: int = 30, customer: typing.Union[QiwiCustomer, dict] = None, comment: str = "via pyQiwiP2P (WhiteApfel)", - pay_sources: list[str] = None, + pay_sources: typing.List[str] = None, theme_code: str = None, fields: dict = None, ) -> Bill: From 76a50a916c4989fec369720bdb36e96a8b1cfe44 Mon Sep 17 00:00:00 2001 From: alteralt <109542778+alteralt@users.noreply.github.com> Date: Sun, 31 Jul 2022 01:05:50 +0300 Subject: [PATCH 2/2] Import list from typing --- pyqiwip2p/AioQiwip2p.py | 3 ++- pyqiwip2p/Qiwip2p.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyqiwip2p/AioQiwip2p.py b/pyqiwip2p/AioQiwip2p.py index ee330b6..434aa38 100644 --- a/pyqiwip2p/AioQiwip2p.py +++ b/pyqiwip2p/AioQiwip2p.py @@ -5,6 +5,7 @@ import typing from base64 import b64decode from ipaddress import IPv4Address, IPv4Network +from typing import List import httpx from loguru import logger @@ -125,7 +126,7 @@ async def bill( lifetime: int = 30, customer: typing.Union[QiwiCustomer, dict] = None, comment: str = "via pyQiwiP2P (WhiteApfel)", - pay_sources: typing.List[str] = None, + pay_sources: List[str] = None, theme_code: str = None, fields: dict = None, ) -> Bill: diff --git a/pyqiwip2p/Qiwip2p.py b/pyqiwip2p/Qiwip2p.py index 99762e1..a0ea6d6 100644 --- a/pyqiwip2p/Qiwip2p.py +++ b/pyqiwip2p/Qiwip2p.py @@ -4,6 +4,7 @@ import typing from base64 import b64decode from ipaddress import IPv4Address, IPv4Network +from typing import List import httpx from loguru import logger @@ -115,7 +116,7 @@ def bill( lifetime: int = 30, customer: typing.Union[QiwiCustomer, dict] = None, comment: str = "via pyQiwiP2P (WhiteApfel)", - pay_sources: typing.List[str] = None, + pay_sources: List[str] = None, theme_code: str = None, fields: dict = None, ) -> Bill: