Skip to content

Commit

Permalink
add function signature wrapping at doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhPavel committed Dec 23, 2023
1 parent 2dd13cc commit 9869c54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
# apidoc_toc_file = False
apidoc_extra_args = ['--maxdepth', '1']

python_maximum_signature_line_length = 90

paramlinks_hyperlink_param = 'name'

add_function_parentheses = False
Expand Down
8 changes: 4 additions & 4 deletions src/adaptix/_internal/provider/essential.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ def __new__(
):
return super().__new__(cls, message, exceptions) # type: ignore[arg-type]

def derive(self, __excs: Sequence[CannotProvide]) -> 'AggregateCannotProvide': # type: ignore[override]
def derive(self, excs: Sequence[CannotProvide]) -> 'AggregateCannotProvide': # type: ignore[override]
return AggregateCannotProvide(
self.message,
__excs,
excs,
is_terminal=self.is_terminal,
is_demonstrative=self.is_demonstrative,
)

def derive_upcasting(self, __excs: Sequence[CannotProvide]) -> CannotProvide:
def derive_upcasting(self, excs: Sequence[CannotProvide]) -> CannotProvide:
"""Same as method ``derive`` but allow passing an empty sequence"""
return self.make(
self.message,
__excs,
excs,
is_terminal=self.is_terminal,
is_demonstrative=self.is_demonstrative,
)
Expand Down

0 comments on commit 9869c54

Please sign in to comment.