-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: enhanced typehints and typing #27
Conversation
e36f4e8
to
ebd5bae
Compare
ebd5bae
to
3ae2d51
Compare
809b289
to
56c0b82
Compare
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
3a6dd8d
to
b4052b9
Compare
@@ -50,15 +58,14 @@ | |||
logger.setLevel(logging.INFO) | |||
|
|||
|
|||
class _Klass(Protocol): | |||
__name__: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are properties of type
, not intended class properties.
|
||
|
||
_F = TypeVar("_F", bound=Callable[..., Any]) | ||
_T = TypeVar('_T', bound=_Klass) | ||
|
||
ViewType = _Klass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at runtime, _Klass
/ViewType
was just any class. so this stays as is ...
but the typing was intended to glook tof a type
of _Klass
/ViewType
...
this is fixed, now
Even tough some structures are refactored, no public API is changed.
No runtime is changed.
TypeCheckers might behave differently, which is intentional due to bug fixes. This is considered a non-breaking change, as it does not affect runtime.