-
Notifications
You must be signed in to change notification settings - Fork 0
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
NAS-129755 / 25.04 / Introduce docstrings and type annotations #7
Conversation
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.
LGTM!
d74d208
to
bbeb359
Compare
JIRA ticket https://ixsystems.atlassian.net/browse/NAS-129755 is targeted to the following versions which have not received their corresponding PRs: 25.04 |
This PR has been merged and conversations have been locked. |
The main features of this PR are:
jsonrpc.py
usingTypedDict
pytype
for CI type checking to enforce type safetyMinor syntactical changes were made in some places to appease pytype and other type checkers, esp. pyright.
As a follow-up to this PR, I recommend we import the type specification defined in
jsonrpc.py
in middleware and use it to enforce type safety on the server-side as well.Note: I have skipped adding type hints/docstrings in
legacy.py
.