@@ -6,7 +6,7 @@ API: Decorators: `LogWrap` class and `logwrap` function.
66.. py :module :: logwrap
77 .. py :currentmodule :: logwrap
88
9- .. py :class :: LogWrap( object )
9+ .. py :class :: LogWrap
1010
1111 Log function calls and return values.
1212
@@ -15,7 +15,7 @@ API: Decorators: `LogWrap` class and `logwrap` function.
1515 .. py :method :: __init__ (* , log = None , log_level = logging.DEBUG , exc_level = logging.ERROR , max_indent = 20 , blacklisted_names = None , blacklisted_exceptions = None , log_call_args = True , log_call_args_on_exc = True , log_traceback = True , log_result_obj = True , )
1616
1717 :param log: logger object for decorator, by default trying to use logger from target module. Fallback: 'logwrap'
18- :type log: typing.Optional[ logging.Logger]
18+ :type log: logging.Logger | None
1919 :param log_level: log level for successful calls
2020 :type log_level: int
2121 :param exc_level: log level for exception cases
@@ -24,11 +24,11 @@ API: Decorators: `LogWrap` class and `logwrap` function.
2424 :type max_indent: int
2525 :param blacklisted_names: Blacklisted argument names.
2626 Arguments with this names will be skipped in log.
27- :type blacklisted_names: typing.Optional[typing. Iterable[str]]
27+ :type blacklisted_names: Iterable[str] | None
2828 :param blacklisted_exceptions: list of exception,
2929 which should be re-raised without
3030 producing traceback and text log record.
31- :type blacklisted_exceptions: typing.Optional[typing. Iterable[typing.Type [Exception]]]
31+ :type blacklisted_exceptions: Iterable[type [Exception]] | None
3232 :param log_call_args: log call arguments before executing wrapped function.
3333 :type log_call_args: bool
3434 :param log_call_args_on_exc: log call arguments if exception raised.
@@ -105,18 +105,18 @@ API: Decorators: `LogWrap` class and `logwrap` function.
105105 :param func: function to wrap
106106 :type func: typing.Optional[typing.Callable]
107107 :param log: logger object for decorator, by default trying to use logger from target module. Fallback: 'logwrap'
108- :type log: typing.Optional[ logging.Logger]
108+ :type log: logging.Logger | None
109109 :param log_level: log level for successful calls
110110 :type log_level: int
111111 :param exc_level: log level for exception cases
112112 :type exc_level: int
113113 :param max_indent: maximum indent before classic `repr() ` call.
114114 :type max_indent: int
115115 :param blacklisted_names: Blacklisted argument names. Arguments with this names will be skipped in log.
116- :type blacklisted_names: typing.Optional[typing. Iterable[str]]
116+ :type blacklisted_names: Iterable[str] | None
117117 :param blacklisted_exceptions: list of exceptions, which should be re-raised
118118 without producing traceback and text log record.
119- :type blacklisted_exceptions: typing.Optional[typing. Iterable[typing.Type [Exception]]]
119+ :type blacklisted_exceptions: Iterable[type [Exception]] | None
120120 :param log_call_args: log call arguments before executing wrapped function.
121121 :type log_call_args: bool
122122 :param log_call_args_on_exc: log call arguments if exception raised.
0 commit comments