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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
On a side note, I realized that the Python VSCode extension already supports mypy, so there's no need to install an extra extension. |
Beta Was this translation helpful? Give feedback.
-
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
target
return a valid value:instead of the longer
Should we instead offer two functions? I'd suggest:
has_target
which returns True/Falsetarget
which raises an exception if the target isn't present.Beta Was this translation helpful? Give feedback.
All reactions