-
- Downloads
mrhlpr: Check for argcomplete in sys.modules instead (MR 28)
Repurposing argcomplete as a boolean telling whether the module argcomplete was found results in a variable with two distinct purposes and types, which is bad practice and confuses Mypy. As such, don't assign False to argcomplete if the module is not found and instead just check for whether it exists in sys.modules to determine whether it was imported successfully.
Please register or sign in to comment