-
Notifications
You must be signed in to change notification settings - Fork 0
Update documentation #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rework_indexed_grammars
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First part
value : any | ||
The value of the state | ||
|
||
value: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that type annotation is missing?
|
||
Parameters | ||
---------- | ||
value: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that type annotation is missing?
boxes : set of :class:`~pyformlang.rsa.Box` | ||
A finite set of boxes | ||
|
||
start_box: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that type annotation is missing?
start_nonterminal : :class:`~pyformlang.finite_automaton.Symbol` | str | ||
The start nonterminal for the recursive automaton | ||
---------- | ||
regex: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that type annotation is missing?
start_nonterminal : \ | ||
:class:`~pyformlang.finite_automaton.Symbol` | str, optional | ||
The start nonterminal, S by default | ||
text: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that type annotation is missing?
|
||
Parameters | ||
----------- | ||
value : any | ||
The value of the object | ||
value: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation?
:param l_sets: a list containing tuples (C, M) where: | ||
|
||
Parameters | ||
---------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation?
prod : any | ||
The production used in the rule | ||
---------- | ||
left: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation?
prod : any | ||
The production used in the rule | ||
---------- | ||
left: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation?
rules : iterable of :class:`~pyformlang.indexed_grammar.ReducedRule` | ||
A list of all the rules | ||
optim : int | ||
rules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type annotation?
1dddebb
to
e63bd9d
Compare
Configure Ruff linter for applying pycodestyle, pydocstyle and other's rules. Update the documentation after adding type annotations to pyformlang.
Notes
It is important to note that sphinx with napoleon supports Python type annotations, so adding type hints to docstrings is not necessary.
Todo
Related