mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Use modern typehint syntax
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from typing import List
|
||||
|
||||
from pytest import mark
|
||||
from telethon_generator._impl.codegen.serde.common import (
|
||||
split_words,
|
||||
@@ -19,7 +17,7 @@ from telethon_generator._impl.codegen.serde.common import (
|
||||
("fileMp4", ["file", "Mp4"]),
|
||||
],
|
||||
)
|
||||
def test_split_name_words(name: str, expected: List[str]) -> None:
|
||||
def test_split_name_words(name: str, expected: list[str]) -> None:
|
||||
assert split_words(name) == expected
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user