mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[opentracing] Add missing stubs (#14274)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# They raise ModuleNotFoundError so they are not present at stubtest runtime:
|
||||
opentracing.harness.api_check
|
||||
opentracing.harness.scope_check
|
||||
opentracing.scope_managers.gevent
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
version = "2.4.*"
|
||||
upstream_repository = "https://github.com/opentracing/opentracing-python"
|
||||
partial_stub = true
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = true
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
ERROR_KIND: str
|
||||
ERROR_OBJECT: str
|
||||
EVENT: str
|
||||
MESSAGE: str
|
||||
STACK: str
|
||||
from typing import Final
|
||||
|
||||
ERROR_KIND: Final = "error.kind"
|
||||
ERROR_OBJECT: Final = "error.object"
|
||||
EVENT: Final = "event"
|
||||
MESSAGE: Final = "message"
|
||||
STACK: Final = "stack"
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
from typing import Final
|
||||
|
||||
class UnsupportedFormatException(Exception): ...
|
||||
class InvalidCarrierException(Exception): ...
|
||||
class SpanContextCorruptedException(Exception): ...
|
||||
|
||||
class Format:
|
||||
BINARY: str
|
||||
TEXT_MAP: str
|
||||
HTTP_HEADERS: str
|
||||
BINARY: Final = "binary"
|
||||
TEXT_MAP: Final = "text_map"
|
||||
HTTP_HEADERS: Final = "http_headers"
|
||||
|
||||
Reference in New Issue
Block a user