You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a future proof solution probably writing a linter is the best idea, which automatically picks up TypedDicts from the types module and cross reference them with the API docs. The linter should have two ways of working:
--check: only check for discrepancies and error out with the findings if any (good for the github CI)
--fix: checks and also fixes incorrect/outdated TypedDict based on the API docs.
The linter should always start from the types module and only look up existing definitions, so the declaration would remain manual, but the maintenance became automated.
The text was updated successfully, but these errors were encountered:
Go through the
types/
module to review and update outdated/incorrect type hints for the input output modules.Use the latest API docs https://docs.strangebee.com/thehive/api-docs/ as reference.
As a future proof solution probably writing a linter is the best idea, which automatically picks up
TypedDict
s from thetypes
module and cross reference them with the API docs. The linter should have two ways of working:--check
: only check for discrepancies and error out with the findings if any (good for the github CI)--fix
: checks and also fixes incorrect/outdatedTypedDict
based on the API docs.The linter should always start from the
types
module and only look up existing definitions, so the declaration would remain manual, but the maintenance became automated.The text was updated successfully, but these errors were encountered: