You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MAINT: Code-hygiene quick wins: dead code, bare excepts, broken test block, comparison anti-patterns #882
Small, independent hygiene defects that don't merit separate issues:
quantecon/util/common_messages.py — one message string, referenced nowhere, untouched since 2018, pointing to the defunct continuum.io downloads page. Delete.
quantecon/__init__.py:9-13 — bare except: (catches KeyboardInterrupt/SystemExit during import) around import numba, discarding the original exception and raising a conda-specific message — wrong for pip users, and it hides the real traceback in the common numba/llvmlite ABI-mismatch case. Replace with except ImportError as e: raise ImportError(<pip-and-conda message>) from e, or delete the guard and let the natural ImportError speak. The file-level # flake8: noqa masks this today.
quantecon/tests/test_quadsum.py:59-63 — nose-era __main__ block calling undefined names (test_simplesum, test_identitysum; dangling uncalled test_m_identitysum). Running the file directly raises NameError; the source of all 3 F821s in the package. Delete the block.
Activity
MAINT: Code-hygiene quick wins (QuantEcon#882)
MAINT: Code-hygiene quick wins (#882) (#964)