-
Notifications
You must be signed in to change notification settings - Fork 612
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
Check changed files with pytype on github actions #3571
Conversation
…uld be have to be inconsistent to complain about
@@ -87,10 +87,10 @@ def save_input_values(inputs: Sequence[np.ndarray], | |||
|
|||
|
|||
def _setup_mlir_crash_reproducer( | |||
function: Callable[[Any], Any], | |||
function: Any, # pytype doesn't support arbitrary Callable[*args, **kwargs] |
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.
I found a thread about this somewhere. I think it said there is a way to write this. Maybe worth investigating, but can be a followup
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.
SGTM. Could you send a link?
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.
python/mypy#5876. I would have to understand pytype better to understand all that's going on in that thread. python/typing#264 (comment) and https://stackoverflow.com/q/57837609 may also help
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.
Yeah, I was looking through those. The first one would be ideal if it were implemented. But the other two make assumptions about types that the function can ingest, which would be inappropriate in our case.
No description provided.