1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #35058 -- Added __repr__() to OGRGeomType.

This commit is contained in:
David Smith
2023-12-26 20:23:33 +00:00
committed by GitHub
parent 14917c9ae2
commit 2a2481f5a2
2 changed files with 6 additions and 0 deletions

View File

@@ -55,6 +55,9 @@ class OGRGeomType:
"Return the value of the name property."
return self.name
def __repr__(self):
return f"<{self.__class__.__qualname__}: {self.name}>"
def __eq__(self, other):
"""
Do an equivalence test on the OGR type with the given