-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation #739
base: v1
Are you sure you want to change the base?
Update documentation #739
Conversation
add .. autoclass:: BasePoint to Reference section.
Correct last commit to autoclass:: BasePoint
Add intersphinx mapping to python 3 inventory.
Looks like fontshell.font may need to be updated here: tests are run via fontShell, fyi. Though, not sure tbh if that is the issue. |
I think the issue simply is that I changed the name of the new module from |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #739 +/- ##
==========================================
- Coverage 78.30% 78.13% -0.17%
==========================================
Files 41 42 +1
Lines 6094 6157 +63
Branches 1017 1028 +11
==========================================
+ Hits 4772 4811 +39
- Misses 1116 1138 +22
- Partials 206 208 +2
|
The error was related to a misguided attempt of mine to fix a naming issue with the defaultLayer properties. I think the names of those are reversed, compared to their status as base vs. environment related. Anyway, reversing the changes I made, fixed the problem, and for fear of breaking something more, I haven't looked further into this, but you should definitely take a look at those properties. |
Hey @knutnergaard, I am very sorry, I was typing far too quickly in my reply about the name for |
I had some trouble with the lasts few commits from the terminal, but hopefully everything is ok now. Sorry about that! I'll update |
…methods in base/layer.py and fontshell/layer.py to return mappings to tuple. - Update base/layer.py with doc revisions and type annotations. - Update layer.rst accordingly. - Fix link to fontParts.world in various .rst files.
@benkiel, In |
@knutnergaard I think that |
Yes, that makes sense, but I see this error also occurs in other cases, like here, in the def swapLayerNames(self, layerName: str, otherLayerName: str) -> None:
...
self._swapLayers(layerName, otherLayerName) # Instance of 'BaseFont' has no '_swapLayers' member I could not find any logic for BTW, after some revisions not yet committed, all type annotation and logic pass when running mypy on font.py:1360: error: "BaseFont" has no attribute "_swapLayers" [attr-defined]
font.py:2017: error: Signature of "isCompatible" incompatible with supertype "InterpolationMixin" [override]
font.py:2017: note: Superclass:
font.py:2017: note: def isCompatible(self, other: Any, cls: Any) -> Tuple[bool, str]
font.py:2017: note: Subclass:
font.py:2017: note: def isCompatible(self, other: BaseFont) -> Tuple[bool, str]
font.py:2095: error: "str" has no attribute "fatal" [attr-defined]
font.py:2095: error: "str" has no attribute "warning" [attr-defined]
font.py:2096: error: "str" has no attribute "fatal" [attr-defined]
font.py:2098: error: "str" has no attribute "warning" [attr-defined] I've edited the line numbers to reflect my latest commit of |
(and thank you for understanding the speed of review!) |
Hey there! I'd be happy to contribute and help with this process. I use |
@roberto-arista Yes, PR for seperate things to the |
@knutnergaard Ok — quick look at the documentation module — WOW! I think the best place to put it in the |
Great! I've put it in documentation > tools. I've done some minor refactoring, and improvements and added functionality to document normalization. Also, I've added abstract versions of members used in the mixin but defined in the main |
@benkiel , after another pass at annotations in glyph.py:76: error: Signature of "_reprContents" incompatible with supertype "BaseObject" [override]
glyph.py:76: note: Superclass:
glyph.py:76: note: @classmethod
glyph.py:76: note: def _reprContents(cls) -> List[str]
glyph.py:76: note: Subclass:
glyph.py:76: note: def _reprContents(self) -> List[str]
glyph.py:2707: error: Signature of "isCompatible" incompatible with supertype "InterpolationMixin" [override]
glyph.py:2707: note: Superclass:
glyph.py:2707: note: def isCompatible(self, other: Any, cls: Type[Any]) -> Tuple[bool, Any]
glyph.py:2707: note: Subclass:
glyph.py:2707: note: def isCompatible(self, other: BaseGlyph) -> Tuple[bool, str] Is there any reason why these methods are defined as class methods in |
- add Interpolatable protocol and compatible type variable to `annotations.py` - add and improve annotations and documentation in `base.py`
@benkiel, regarding |
@knutnergaard Yes, will do. I had planned on reviewing this PR this morning/today, but...life. Know you are waiting on me, will get to it in short order. |
@knutnergaard for corner - a point where bcpIn and bcpOut are not smooth (linked) |
@knutnergaard I've seen that you started to work on |
This comment was marked as outdated.
This comment was marked as outdated.
@roberto-arista At present, all the commits to my own fork seem to update this PR automatically. I'm happy to use separate PRs like you've done, I'm just not sure how. Anyway, my edits to bPoint.py is based on yours. I've basically just updated the documentation. I appreciate all the help you can give with the annotation, as I use those as basis when updating docstrings. BTW, I'm not sure of the best workflow, but since annotations are a prerequisite for updating the docs, forking my repo might be the way to go. We might want to wait for @benkiel's review of this PR, though, which should be imminent. At least I'm not going to start working on a new module until then. Thanks! |
Ok, let's wait for @benkiel's input on this PR. Since you are doing also work on the docs, I agree that it might make more sense to contribute to your fork first. |
Great! In that case, to keep things organised, should I create separate branches for annotations and docs or should I branch each module, like you've done? |
base/font.py
base/type.py
documentation/source/conf.py