Upgrade to latest 3.12 and 3.13 versions for stubtest (#12131)

This commit is contained in:
Alex Waygood
2024-06-12 12:16:39 +01:00
committed by GitHub
parent 9197ace5ec
commit 3ab03deec3
16 changed files with 64 additions and 117 deletions

View File

@@ -33,7 +33,7 @@ class JOIN_STYLE:
class BaseGeometry(Geometry):
@deprecated(
"Directly calling 'BaseGeometry()' is deprecated. To create an empty geometry, "
"use one of the subclasses instead, for example 'GeometryCollection()'." # pyright: ignore[reportImplicitStringConcatenation]
"use one of the subclasses instead, for example 'GeometryCollection()'."
)
def __new__(self) -> GeometryCollection: ...
def __bool__(self) -> bool: ...
@@ -280,6 +280,6 @@ class GeometrySequence(Generic[_P_co]):
class EmptyGeometry(BaseGeometry):
@deprecated(
"The 'EmptyGeometry()' constructor is deprecated. Use one of the "
"geometry subclasses instead, for example 'GeometryCollection()'." # pyright: ignore[reportImplicitStringConcatenation]
"geometry subclasses instead, for example 'GeometryCollection()'."
)
def __new__(self) -> GeometryCollection: ... # type: ignore[misc]