Skip to content

Commit ee8ec01

Browse files
committed
Accept suggestions
1 parent 50cb26b commit ee8ec01

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ class AsyncContext(_Context):
1414

1515
class TaskLocalStorage:
1616
def __init__(self, loop: AbstractEventLoop | None = None) -> None: ...
17-
def __setattr__(self, name: str, value) -> None: ...
18-
def __getattribute__(self, item: str) -> Any: ...
17+
# Sets unknown items on the current task's context attribute
18+
def __setattr__(self, name: str, value: Any) -> None: ...
19+
# Returns unknown items from the current tasks context attribute
20+
def __getattribute__(self, item: str) -> Any | None: ...
1921
def clear(self) -> None: ...
2022

2123
def task_factory(loop: AbstractEventLoop | None, coro: _TaskCompatibleCoro[_T_co]) -> Task[_T_co]: ...

stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _typeshed import Incomplete
22
from collections.abc import Callable
33
from types import TracebackType
4-
from typing import Any, Final
4+
from typing import Final
55

66
from ..recorder import AWSXRayRecorder
77
from .dummy_entities import DummySubsegment
@@ -11,7 +11,7 @@ from .segment import Segment
1111
SUBSEGMENT_RECORDING_ATTRIBUTE: Final = "_self___SUBSEGMENT_RECORDING_ATTRIBUTE__"
1212

1313
def set_as_recording(decorated_func, wrapped) -> None: ...
14-
def is_already_recording(func: Callable[..., Any]) -> bool: ... # return type does not matter
14+
def is_already_recording(func: Callable[..., object]) -> bool: ...
1515
def subsegment_decorator(wrapped, instance, args, kwargs): ...
1616

1717
class SubsegmentContextManager:

0 commit comments

Comments
 (0)