Skip to content

Commit 2accbcb

Browse files
committed
Pylint config.
1 parent 6d2b0ae commit 2accbcb

5 files changed

Lines changed: 73 additions & 84 deletions

File tree

aiohttp_aiofiles_tutorial/data/tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ def test_parse_urls():
99

1010
urls_to_fetch = parse_urls_from_csv(INPUT_FILEPATH)
1111

12-
assert (type(urls_to_fetch)) == list
12+
assert isinstance(urls_to_fetch, list)
1313
assert "https://" in urls_to_fetch[0]

aiohttp_aiofiles_tutorial/data/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def parse_urls_from_csv(filepath: str) -> List[str]:
1212
:returns: List[str]
1313
"""
1414
urls = []
15-
with open(filepath, newline="") as f:
15+
with open(filepath, newline="", encoding="utf-8") as f:
1616
reader = csv.DictReader(f)
1717
for line in reader:
1818
urls.append(line["url"])

0 commit comments

Comments
 (0)