Annotate and document compatibility.py#822
Annotate and document compatibility.py#822knutnergaard wants to merge 3 commits intorobotools:v1from
compatibility.py#822Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v1 #822 +/- ##
==========================================
- Coverage 76.51% 76.25% -0.26%
==========================================
Files 42 42
Lines 6459 6558 +99
Branches 966 987 +21
==========================================
+ Hits 4942 5001 +59
- Misses 1277 1296 +19
- Partials 240 261 +21
🚀 New features to boost your workflow:
|
|
To clarify the mypy errors above, the confusion stems from fontParts/Lib/fontParts/base/compatibility.py Lines 415 to 421 in 84fbe94 At the same time fontParts/Lib/fontParts/base/glyph.py Lines 1934 to 1947 in 84fbe94 Depending on the actual intention, one viable option to solve this is to remove the index before casting to list in reporter.guidelinesMissingFromGlyph2 = [
name
for name, _ in guidelines1.difference(guidelines2)
if name is not None
] |
@benkiel b0efc71 results in the folllowing
mypyerrors:This can be most easily solved by casting
set[tuple[Optional[str], int]]tostr, but I'm not sure if that's appropriate.Also, should this module be documented?