mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 10:52:31 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from _typeshed import Incomplete, Self
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from enum import Enum
|
||||
from typing_extensions import Self
|
||||
|
||||
from influxdb_client.client.flux_table import TableList
|
||||
|
||||
@@ -44,9 +45,9 @@ class FluxCsvParser:
|
||||
query_options: Incomplete | None = ...,
|
||||
response_metadata_mode: FluxResponseMetadataMode = ...,
|
||||
) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
||||
async def __aenter__(self: Self) -> Self: ...
|
||||
async def __aenter__(self) -> Self: ...
|
||||
async def __aexit__(self, exc_type, exc_val, exc_tb) -> None: ...
|
||||
def generator(self) -> Generator[Incomplete, None, None]: ...
|
||||
def generator_async(self): ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete, Self
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Self
|
||||
|
||||
from influxdb_client import HealthCheck, InvokableScriptsApi, Ready
|
||||
from influxdb_client.client._base import _BaseClient
|
||||
@@ -41,7 +42,7 @@ class InfluxDBClient(_BaseClient):
|
||||
retries: bool | Incomplete = ...,
|
||||
profilers: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, exc_type: object, exc_value: object, traceback: object) -> None: ...
|
||||
@classmethod
|
||||
def from_config_file(cls, config_file: str = ..., debug: Incomplete | None = ..., enable_gzip: bool = ..., **kwargs): ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from _typeshed import Incomplete, Self
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Self
|
||||
|
||||
from influxdb_client.client._base import _BaseClient
|
||||
from influxdb_client.client.delete_api_async import DeleteApiAsync
|
||||
@@ -35,7 +36,7 @@ class InfluxDBClientAsync(_BaseClient):
|
||||
retries: bool | Incomplete = ...,
|
||||
profilers: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
async def __aenter__(self: Self) -> Self: ...
|
||||
async def __aenter__(self) -> Self: ...
|
||||
async def __aexit__(self, exc_type: object, exc: object, tb: object) -> None: ...
|
||||
async def close(self) -> None: ...
|
||||
@classmethod
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from _typeshed import Incomplete, Self, SupportsGetItem, SupportsItems
|
||||
from _typeshed import Incomplete, SupportsGetItem, SupportsItems
|
||||
from collections.abc import Iterable
|
||||
from datetime import datetime, timedelta
|
||||
from numbers import Integral
|
||||
from typing import Any
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
|
||||
from influxdb_client.domain.write_precision import _WritePrecision
|
||||
|
||||
@@ -29,9 +29,9 @@ class Point:
|
||||
fields: SupportsItems[str, Literal["int", "uint", "float"]] = ...,
|
||||
) -> Point: ...
|
||||
def __init__(self, measurement_name: str) -> None: ...
|
||||
def time(self: Self, time: _Time, write_precision: _WritePrecision = ...) -> Self: ...
|
||||
def tag(self: Self, key: str, value: _Value) -> Self: ...
|
||||
def field(self: Self, field: str, value: _Value) -> Self: ...
|
||||
def time(self, time: _Time, write_precision: _WritePrecision = ...) -> Self: ...
|
||||
def tag(self, key: str, value: _Value) -> Self: ...
|
||||
def field(self, field: str, value: _Value) -> Self: ...
|
||||
def to_line_protocol(self, precision: _WritePrecision | None = ...) -> str: ...
|
||||
@property
|
||||
def write_precision(self) -> _WritePrecision: ...
|
||||
|
||||
Reference in New Issue
Block a user