mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
mypy: Amend tools/check-css functions from Text to str.
This commit is contained in:
committed by
Tim Abbott
parent
8433d95d99
commit
33a6a633eb
@@ -12,7 +12,7 @@ from lib import sanity_check
|
||||
sanity_check.check_venv(__file__)
|
||||
|
||||
def validate(fn):
|
||||
# type: (Text) -> None
|
||||
# type: (str) -> None
|
||||
text = open(fn).read()
|
||||
section_list = parse(text)
|
||||
if text != section_list.text():
|
||||
@@ -22,7 +22,7 @@ def validate(fn):
|
||||
sys.exit(1)
|
||||
|
||||
def check_our_files(filenames):
|
||||
# type: (Iterable[Text]) -> None
|
||||
# type: (Iterable[str]) -> None
|
||||
for filename in filenames:
|
||||
try:
|
||||
validate(filename)
|
||||
|
||||
Reference in New Issue
Block a user