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
"""Symbolica Python API."""from __future__ importannotationsfromtypingimportCallable, overload, Iterator, Optional, Sequence, Tuple, ListclassExpression:
"""A Symbolica expression."""defvar(_cls, name: str) ->Expression:
""" Creates a Symbolica expression that is a single variable. Examples -------- >>> var_x = Expression.var('x') >>> print(var_x) x """@classmethoddefvars(_cls, *names: str) ->Sequence[Expression]:
""" Create a Symbolica variable for every name in `*names`. """@classmethoddeffun(_cls, name: str, is_symmetric: bool=False) ->Function:
""" Creates a new Symbolica function with a given name. Examples -------- >>> f = Expression.fun('f') >>> e = f(1,2) >>> print(e) f(1,2) """@classmethoddeffuns(_cls, *names: str) ->Sequence[Function]:
""" Create a Symbolica function for every name in `*names`. """@classmethoddefparse(_cls, input: str) ->Expression:
""" Parse a Symbolica expression from a string. Parameters ---------- input: str An input string. UTF-8 character are allowed. Examples -------- >>> e = Expression.parse('x^2+y+y*4') >>> print(e) x^2+5*y Raises ------ ValueError If the input is not a valid Symbolica expression. """def__copy__(self) ->Expression:
""" Copy the expression. """
With many more entries. When generating the pdoc output for this using either:
python -m pdoc ./symbolica.pyi
or
python -m pdoc ./symbolica.so
I get
The output is missing some functions, such as __copy__, and is missing most documentation. For some reason, some functions do contain documentation.
VS Code has no problems showing the documentation:
Do you have any idea what is going on?
The text was updated successfully, but these errors were encountered:
I have a
.pyi
file that looks like this:With many more entries. When generating the pdoc output for this using either:
or
I get
The output is missing some functions, such as
__copy__
, and is missing most documentation. For some reason, some functions do contain documentation.VS Code has no problems showing the documentation:
Do you have any idea what is going on?
The text was updated successfully, but these errors were encountered: