Skip to content

Fix incorrect docstring parameter names#8344

Open
eeshsaxena wants to merge 1 commit into
pymc-devs:mainfrom
eeshsaxena:fix-docstring-param-names
Open

Fix incorrect docstring parameter names#8344
eeshsaxena wants to merge 1 commit into
pymc-devs:mainfrom
eeshsaxena:fix-docstring-param-names

Conversation

@eeshsaxena

Copy link
Copy Markdown

Description

Two docstrings document parameters that do not match their signatures:

  • pymc.tuning.scaling.fixed_hessian(point, model=None) documents a vars parameter that it does not take (it appears to have been copied from find_hessian). The stale entry is removed.
  • A QuadPotential.__init__(self, cov, ...) in step_methods/hmc/quadpotential.py documents its first parameter as A, but the parameter is named cov (the body uses cov).

Documentation-only change; no behaviour is affected.

- tuning.scaling.fixed_hessian documented a 'vars' parameter it does not
  take (copied from find_hessian); remove the stale entry.
- QuadPotentialFullAdapt.__init__ documented its parameter as 'A' but the
  parameter is named 'cov'.
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.76%. Comparing base (c032457) to head (be9b703).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8344   +/-   ##
=======================================
  Coverage   91.76%   91.76%           
=======================================
  Files         128      128           
  Lines       20653    20653           
=======================================
  Hits        18952    18952           
  Misses       1701     1701           
Files with missing lines Coverage Δ
pymc/step_methods/hmc/quadpotential.py 84.72% <ø> (ø)
pymc/tuning/scaling.py 62.74% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant