Skip to content

Commit a2f7dce

Browse files
authored
Merge pull request #45 from RamogninoF/fix-logger-hint
Refactor Logged class __new__ method return type annotation
2 parents d36802f + c3f3218 commit a2f7dce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python_utils/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def __get_name(cls, *name_parts: str) -> str:
331331
LoggerBase._LoggerBase__get_name(*name_parts), # type: ignore[attr-defined] # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType, reportAttributeAccessIssue]
332332
)
333333

334-
def __new__(cls, *args: types.Any, **kwargs: types.Any) -> 'Logged':
334+
def __new__(cls, *args: types.Any, **kwargs: types.Any) -> types.Self:
335335
"""
336336
Create a new instance of the class and initialize the logger.
337337

0 commit comments

Comments
 (0)