Skip to content

Better docstrings#352

Merged
thrasibule merged 7 commits into
enthought:masterfrom
thrasibule:ois-pr4-docs
Jul 17, 2026
Merged

Better docstrings#352
thrasibule merged 7 commits into
enthought:masterfrom
thrasibule:ois-pr4-docs

Conversation

@thrasibule

Copy link
Copy Markdown
Collaborator

No description provided.

This commit adds numpydoc-style docstrings to the `Array` class and its methods in `quantlib/math/array.pyx`.

The docstrings are based on the documentation from the original QuantLib C++ library and are adapted for Python style.
…l modules, enhancing the overall documentation of the library.

The following modules and their classes have been documented:
- `quantlib/time`: `Date`, `Period`, `Calendar`
- `quantlib/termstructures/yields`: `FlatForward`, `ForwardSpreadedTermStructure`, `ImpliedTermStructure`
- `quantlib/quotes`: `SimpleQuote`, `FuturesConvAdjustmentQuote`
- `quantlib/indexes`: `IborIndex`, `OvernightIndex`, `InflationIndex`, `ZeroInflationIndex`, `YoYInflationIndex`
- `quantlib/instruments`: `Swap`, `VanillaSwap`

The docstrings now include fully qualified type hints to support documentation generation and cross-referencing.

Additionally, a bug in the `is_end_of_month` method in `quantlib/time/calendar.pyx` has been corrected.
@thrasibule
thrasibule merged commit 51bf9d2 into enthought:master Jul 17, 2026
3 checks passed
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