Skip to content
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

More elegant noop #1859

Merged
merged 1 commit into from
Oct 27, 2023
Merged

More elegant noop #1859

merged 1 commit into from
Oct 27, 2023

Conversation

janiversen
Copy link
Collaborator

Changed the _noop introduced, with a more elegant one line solution.

@janiversen
Copy link
Collaborator Author

@alexrudd2 you were the one who suggested to use "lambda: None" :-)

so lets see if mypy in CI accepts it.

@janiversen janiversen merged commit 5d1b59f into dev Oct 27, 2023
1 check passed
@janiversen janiversen deleted the transport branch October 27, 2023 07:34
@alexrudd2
Copy link
Collaborator

mypy in CI accepts the lambda: None because it is not in strict mode.
mypy in strict mode will not. 🤣

@janiversen
Copy link
Collaborator Author

Well we are a long way from putting mypy in strict mode, not sure that will ever happen.

@alexrudd2
Copy link
Collaborator

Aha, but we are close to strict-optional = True

alexrudd2 added a commit that referenced this pull request Oct 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants