Introduce SupportsContainsAndGetItem (#11827)

This commit is contained in:
Sebastian Rittau
2024-04-24 16:19:12 +02:00
committed by GitHub
parent d0f2be92ab
commit f646eb86e2
4 changed files with 17 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ class Point:
def measurement(measurement: str) -> Point: ...
@staticmethod
def from_dict(
dictionary: SupportsGetItem[str, Any],
dictionary: SupportsGetItem[str, Any], # TODO: Use SupportsContainsAndGetItem
write_precision: _WritePrecision = "ns",
*,
record_measurement_name: str | None = ...,