mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
fix(py3.9): use List from typing for type hinting instead of built-in list
This commit is contained in:
parent
ab8f854385
commit
45b47af9b2
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrofork. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from typing import Union, BinaryIO
|
from typing import Union, BinaryIO, List
|
||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram import raw
|
from pyrogram import raw
|
||||||
|
|
@ -29,7 +29,7 @@ class SetProfilePhoto:
|
||||||
*,
|
*,
|
||||||
photo: Union[str, BinaryIO] = None,
|
photo: Union[str, BinaryIO] = None,
|
||||||
emoji: int = None,
|
emoji: int = None,
|
||||||
emoji_background: Union[int, list[int]] = None,
|
emoji_background: Union[int, List[int]] = None,
|
||||||
video: Union[str, BinaryIO] = None
|
video: Union[str, BinaryIO] = None
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Set a new profile photo or video (H.264/MPEG-4 AVC video, max 5 seconds).
|
"""Set a new profile photo or video (H.264/MPEG-4 AVC video, max 5 seconds).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue