Executing a function for each element and correct typing of it #1270
Sanchoyzer
started this conversation in
Reviews
Replies: 1 comment 6 replies
-
Lines are basically free ;) The reported error is correct. You cannot use |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's look at this code:
There is a mypy error:
Of course, I can write it like a loop, but it'll take three lines instead of one.
What is the correct way (in one line) to execute a function (without returning a result value) for each element from a collection?
Beta Was this translation helpful? Give feedback.
All reactions