Skip to content
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

Revise annotations.py with new generic container types. #755

Merged
merged 64 commits into from
Nov 2, 2024

Conversation

knutnergaard
Copy link
Contributor

@knutnergaard knutnergaard commented Oct 27, 2024

As discussed in #751, this version of the annotations module includes more generic container types which may be used instead of the current font-specific type aliases. This will minimise the need for type-related imports and simplify the annotation process, while making types less font-specific.

This revision will require a total overhaul of the typed modules in the v1 branch.

add .. autoclass:: BasePoint to Reference section.
Correct last commit to autoclass:: BasePoint
Add intersphinx mapping to python 3 inventory.
Correct import error.
This reverts commit e7152b0.

i#
…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.
@knutnergaard
Copy link
Contributor Author

knutnergaard commented Oct 30, 2024

@benkiel Excuse all the commits. I've been having (serious) merge troubles, but now the branch is finally down to the actual files I intended to change, and I'm a bit wiser with regard to working with git in general.

I'm happy to repost this PR with a clean history if necessary.

@knutnergaard
Copy link
Contributor Author

knutnergaard commented Oct 31, 2024

@benkiel I've revised the annotated modules, as well as improved the annotations.py module somewhat. Some of the type aliases are a little long, but have the benefit of being explicit and avoid potential naming conflicts.

@benkiel
Copy link
Member

benkiel commented Nov 1, 2024

@knutnergaard great. I'll review: is this PR ready for that?

@knutnergaard
Copy link
Contributor Author

@benkiel, yes please do.

Copy link
Member

@benkiel benkiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few things

@benkiel benkiel merged commit 38f834d into robotools:v1 Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants