Skip to content

TYP: Add typing support classes - #8152

Merged
bashtage merged 1 commit into
statsmodels:mainfrom
bashtage:add-typing
Feb 23, 2022
Merged

bashtage merged 1 commit into
statsmodels:mainfrom
bashtage:add-typing

Conversation

@bashtage

Copy link
Copy Markdown
Member

Add simple types to use
Enforce recent NumPy required when typing
Improve typing of AutoReg and ARDL

  • code/documentation is well formatted.
  • properly formatted commit message. See
    NumPy's guide.
Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in main and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/main -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

Add simple types to use
Enforce recent NumPy required when typing
Improve typing of AutoReg and ARDL
@bashtage
bashtage merged commit 161ca84 into statsmodels:main Feb 23, 2022
@bashtage
bashtage deleted the add-typing branch February 23, 2022 23:13
@bashtage bashtage added this to the 0.14 milestone Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant