diff --git a/docs/conf.py b/docs/conf.py index 0a366960..d06da1e3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 diff --git a/src/adaptix/_internal/provider/essential.py b/src/adaptix/_internal/provider/essential.py index cb70444b..bcdf3a7a 100644 --- a/src/adaptix/_internal/provider/essential.py +++ b/src/adaptix/_internal/provider/essential.py @@ -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, )