-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated typeshed stubs to the latest version.
- Loading branch information
1 parent
4cb24cb
commit dabafb2
Showing
86 changed files
with
1,473 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3ce5502675d3c23394b592f00234fbdfc743a7d5 | ||
d4f07254526840102f02f7f968b2e5a473b45c33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/METADATA.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
version = "2.8" |
3 changes: 3 additions & 0 deletions
3
packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/__init__.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .sdk_config import SDKConfig | ||
|
||
global_sdk_config: SDKConfig |
4 changes: 4 additions & 0 deletions
4
...ages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/__init__.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from .patcher import patch as patch, patch_all as patch_all | ||
from .recorder import AWSXRayRecorder as AWSXRayRecorder | ||
|
||
xray_recorder: AWSXRayRecorder |
15 changes: 15 additions & 0 deletions
15
...pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Any | ||
|
||
from .context import Context as _Context | ||
|
||
class AsyncContext(_Context): | ||
def __init__(self, *args, loop: Any | None = ..., use_task_factory: bool = ..., **kwargs) -> None: ... | ||
def clear_trace_entities(self) -> None: ... | ||
|
||
class TaskLocalStorage: | ||
def __init__(self, loop: Any | None = ...) -> None: ... | ||
def __setattr__(self, name, value) -> None: ... | ||
def __getattribute__(self, item): ... | ||
def clear(self) -> None: ... | ||
|
||
def task_factory(loop, coro): ... |
25 changes: 25 additions & 0 deletions
25
...yright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from typing import Any | ||
|
||
from .models.segment import SegmentContextManager as SegmentContextManager | ||
from .models.subsegment import ( | ||
SubsegmentContextManager as SubsegmentContextManager, | ||
is_already_recording as is_already_recording, | ||
subsegment_decorator as subsegment_decorator, | ||
) | ||
from .recorder import AWSXRayRecorder as AWSXRayRecorder | ||
from .utils import stacktrace as stacktrace | ||
|
||
class AsyncSegmentContextManager(SegmentContextManager): | ||
async def __aenter__(self): ... | ||
async def __aexit__(self, exc_type, exc_val, exc_tb): ... | ||
|
||
class AsyncSubsegmentContextManager(SubsegmentContextManager): | ||
async def __call__(self, wrapped, instance, args, kwargs): ... | ||
async def __aenter__(self): ... | ||
async def __aexit__(self, exc_type, exc_val, exc_tb): ... | ||
|
||
class AsyncAWSXRayRecorder(AWSXRayRecorder): | ||
def capture_async(self, name: Any | None = ...): ... | ||
def in_segment_async(self, name: Any | None = ..., **segment_kwargs): ... | ||
def in_subsegment_async(self, name: Any | None = ..., **subsegment_kwargs): ... | ||
async def record_subsegment_async(self, wrapped, instance, args, kwargs, name, namespace, meta_processor): ... |
30 changes: 30 additions & 0 deletions
30
packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/context.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import time | ||
from logging import Logger | ||
from typing import Any | ||
|
||
from .. import global_sdk_config as global_sdk_config | ||
from .exceptions.exceptions import SegmentNotFoundException as SegmentNotFoundException | ||
from .models.dummy_entities import DummySegment as DummySegment | ||
from .models.entity import Entity | ||
from .models.segment import Segment | ||
from .models.subsegment import Subsegment | ||
|
||
log: Logger | ||
SUPPORTED_CONTEXT_MISSING: Any | ||
MISSING_SEGMENT_MSG: str | ||
CXT_MISSING_STRATEGY_KEY: str | ||
|
||
class Context: | ||
def __init__(self, context_missing: str = ...) -> None: ... | ||
def put_segment(self, segment: Segment) -> None: ... | ||
def end_segment(self, end_time: time.struct_time | None = ...) -> None: ... | ||
def put_subsegment(self, subsegment: Subsegment) -> None: ... | ||
def end_subsegment(self, end_time: time.struct_time | None = ...): ... | ||
def get_trace_entity(self): ... | ||
def set_trace_entity(self, trace_entity: Entity) -> None: ... | ||
def clear_trace_entities(self) -> None: ... | ||
def handle_context_missing(self) -> None: ... | ||
@property | ||
def context_missing(self): ... | ||
@context_missing.setter | ||
def context_missing(self, value: str) -> None: ... |
Oops, something went wrong.