Skip to content

Commit

Permalink
Rename custom "Any" type to "OtelAny"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Alnosairi committed Sep 12, 2024
1 parent 48413a2 commit 200170d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ class LogDroppedAttributesWarning(UserWarning):

warnings.simplefilter("once", LogDroppedAttributesWarning)

Any = Union[str, bool, int, float, bytes, List["Any"], Dict[str, "Any"], None]
OtelAny = Union[
str, bool, int, float, bytes, List["OtelAny"], Dict[str, "OtelAny"], None
]


class LogLimits:
Expand Down Expand Up @@ -181,7 +183,7 @@ def __init__(
trace_flags: Optional[TraceFlags] = None,
severity_text: Optional[str] = None,
severity_number: Optional[SeverityNumber] = None,
body: Optional[Any] = None,
body: Optional[OtelAny] = None,
resource: Optional[Resource] = None,
attributes: Optional[Attributes] = None,
limits: Optional[LogLimits] = _UnsetLogLimits,
Expand Down Expand Up @@ -383,8 +385,8 @@ def add_log_record_processor(
def _submit_and_wait(
self,
func: Callable[[LogRecordProcessor], Callable[..., None]],
*args: Any,
**kwargs: Any,
*args: OtelAny,
**kwargs: OtelAny,
):
futures = []
for lp in self._log_record_processors:
Expand Down

0 comments on commit 200170d

Please sign in to comment.