PR: Add various new literals for typing annotations.#1198
Conversation
|
Would it be better to implement this as a local pre-commit hook so that the committed code is always up-to-date? |
|
This is a very good suggestion @jamesmyatt! |
d361cd5 to
0fc9172
Compare
|
@jamesmyatt : So it is in theory not possible with |
0fc9172 to
b6ff863
Compare
|
Actually, I don't think it can be done properly: the issue is that we need to be able to import I will revert to what I did in the |
Summary
This PR adds various new literals for typing annotations. They should be convenient for packages using Colour and willing to add typing annotations.
They are automatically generated as part of the build/release process using a new invoke tasks.
Preflight
Code Style and Quality
colour,colour.models.Documentation