12 Commits

Author SHA1 Message Date
Cosimo Lupo
22266631d9 plistlib: fix PlistEncodable typing annotations to appease mypy
https://github.com/fonttools/fonttools/runs/4545664923?check_suite_focus=true#step:5:12
2021-12-16 10:24:49 +00:00
Khaled Hosny
232b2ccbc4 Move the rest of py23 module to textTools
Change all imports to use textTools module, except the test_py23.py test
which is kept until we decide to remove the module (if ever).
2021-08-20 01:29:45 +02:00
Just van Rossum
5fc65d7168
Misc py23 cleanups (#2243)
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Cosimo Lupo
822d3bf261
plistlib: remove unused 'type: ignore' comment to appease mypy 2021-01-25 17:42:19 +00:00
Nikolaus Waxweiler
0742a9bff3 Implement suggestions 2020-09-21 17:01:22 +01:00
Nikolaus Waxweiler
a1df979335
Update Lib/fontTools/misc/plistlib/__init__.py
Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
2020-09-21 16:53:55 +01:00
Nikolaus Waxweiler
4efc06e62f
Update Lib/fontTools/misc/plistlib/__init__.py
Co-authored-by: Cosimo Lupo <cosimo@anthrotype.com>
2020-09-21 16:53:46 +01:00
Nikolaus Waxweiler
2906ac2908 One less type-ignore 2020-09-16 20:28:33 +01:00
Nikolaus Waxweiler
09a64418f0 Misplaced ignore 2020-09-16 20:08:45 +01:00
Nikolaus Waxweiler
a501c0cbe7 More typing and ignores 2020-09-16 19:59:50 +01:00
Nikolaus Waxweiler
10864be26f Fix one typing warning 2020-09-16 17:42:46 +01:00
Nikolaus Waxweiler
863d9fd3c8 Add py.typed file 2020-09-16 12:03:52 +01:00