Replies: 3 comments 1 reply
|
I don't mind changing to the more verbose test, although I was intentional when writing as the test fails via an exception when target is None. I kind of like writing |
0 replies
|
Oh, I turned on mypy to investigate #469 and realized the obvious reason why my test isn't great: it correctly triggers type complaints. So I'd add an |
1 reply
|
On a side note, I realized that the Python VSCode extension already supports mypy, so there's no need to install an extra extension. |
0 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.
I noticed that there's some ambiguity in the way that the CLI uses optional return values. In
project_refactor.py:However, most of the tests don't check that
targetreturn a valid value:instead of the longer
Should we instead offer two functions? I'd suggest:
has_targetwhich returns True/Falsetargetwhich raises an exception if the target isn't present.All reactions