Skip to content

Commit 959054d

Browse files
committed
Refactoring. html_parsing/pillow__handbook__image_file_formats.py
1 parent e709139 commit 959054d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html_parsing/pillow__handbook__image_file_formats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ def get_formats(css_selector: str) -> list[str]:
1717
)
1818
root = BeautifulSoup(rs.content, "html.parser")
1919

20-
fully_supported_formats = get_formats("#fully-supported-formats")
20+
fully_supported_formats: list[str] = get_formats("#fully-supported-formats")
2121
print(fully_supported_formats)
2222
# ['blp', 'bmp', 'dds', 'dib', 'eps', 'gif', 'icns', 'ico', 'im', 'jpeg',
2323
# 'jpeg-2000', 'mpo', 'msp', 'pcx', 'pfm', 'png', 'ppm', 'sgi', 'spider',
2424
# 'tga', 'tiff', 'webp', 'xbm']
2525

26-
read_only_formats = get_formats("#read-only-formats")
26+
read_only_formats: list[str] = get_formats("#read-only-formats")
2727
print(read_only_formats)
2828
# ['cur', 'dcx', 'fits', 'fli-flc', 'fpx', 'ftex', 'gbr', 'gd', 'imt',
2929
# 'iptc-naa', 'mcidas', 'mic', 'pcd', 'pixar', 'psd', 'qoi', 'sun', 'wal',
3030
# 'wmf-emf', 'xpm']
3131

32-
write_only_formats = get_formats("#write-only-formats")
32+
write_only_formats: list[str] = get_formats("#write-only-formats")
3333
print(write_only_formats)
3434
# ['palm', 'pdf', 'xv-thumbnails']

0 commit comments

Comments
 (0)