mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-21 04:57:03 +08:00
[influxdb-client] Use SupportsContainsAndGetItem (#12612)
This commit is contained in:
1 parent
e8ad9437b3
commit
a8f09b1d5c
1 file changed
+2
-2
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete, SupportsGetItem, SupportsItems
|
||||
from _typeshed import Incomplete, SupportsContainsAndGetItem, SupportsItems
|
||||
from collections.abc import Iterable
|
||||
from datetime import datetime, timedelta
|
||||
from numbers import Integral
|
||||
@@ -18,7 +18,7 @@ class Point:
|
||||
def measurement(measurement: str) -> Point: ...
|
||||
@staticmethod
|
||||
def from_dict(
|
||||
dictionary: SupportsGetItem[str, Any], # TODO: Use SupportsContainsAndGetItem
|
||||
dictionary: SupportsContainsAndGetItem[str, Any],
|
||||
write_precision: _WritePrecision = "ns",
|
||||
*,
|
||||
record_measurement_name: str | None = ...,
|
||||
|
||||
Reference in new issue
Block a user