Skip to content

Commit

Permalink
refactor: replace Any with object in get_name helper func (#2981)
Browse files Browse the repository at this point in the history
refactor: Use object as a top type instead of unnecessary Any in get_name
  • Loading branch information
cbscsm authored Jan 15, 2024
1 parent 7c4dd4b commit 38b0cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litestar/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from enum import Enum
from functools import partial
from typing import TYPE_CHECKING, Any, TypeVar, cast
from typing import TYPE_CHECKING, TypeVar, cast
from urllib.parse import quote

from litestar.utils.typing import get_origin_or_inner_type
Expand All @@ -23,7 +23,7 @@
T = TypeVar("T")


def get_name(value: Any) -> str:
def get_name(value: object) -> str:
"""Get the ``__name__`` of an object.
Args:
Expand Down

0 comments on commit 38b0cb9

Please sign in to comment.