-
Notifications
You must be signed in to change notification settings - Fork 2
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
remove other notification actions #64
Conversation
details: - it has been quite a while since we only support GlobalActions - this PR removes both the helper methods to turn models into GlobalActions as well as typing references to other models - it might break existing customers using the tuned models, so the next release should communicate this properly - this PR also fixes a bunch of typing issues after running pyright on the repo
@@ -217,7 +180,7 @@ class Monitor(NoExtrasBaseModel): | |||
regex="[0-9a-zA-Z \\-_]+", | |||
) | |||
tags: Optional[ # type: ignore | |||
List[constr(min_length=3, max_length=32, regex="[0-9a-zA-Z\\-_]")] # noqa F722 | |||
List[constr(min_length=3, max_length=32, regex="[0-9a-zA-Z\\-_]")] # type:ignore # noqa: F722 |
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.
You can probably fix the type error here and in analyzer by changing constr to Annotated like I did with monitor schema
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.
just caught an error by defining analyzerIds
to be a str
(same as you did for the monitor schema), so I believe we should also update that there!
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.
Did you try changing the List[constr...
on tags? So maybe type:ignore
can go away
eceb27f
to
bce2ebe
Compare
bce2ebe
to
404a5fb
Compare
details:
GlobalActions