From 3be375374727aa1381603aeef3da94a22204c7f1 Mon Sep 17 00:00:00 2001 From: Dan Hemberger Date: Fri, 21 Jan 2022 15:28:17 -0800 Subject: [PATCH] crs.py: remove @abstractmethod decorator According to the documentation for the `@abstractmethod` decorator: > Using this decorator requires that the class's metaclass is > ABCMeta or is derived from it. (source: https://docs.python.org/3/library/abc.html#abc.abstractmethod) Since `CustomConstructorCRS` and `CRS` are not defined as abstract classes, using the `@abstractmethod` decorator does not actually do anything and should be removed. --- pyproj/crs/crs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyproj/crs/crs.py b/pyproj/crs/crs.py index 6d1fac5c7..986da836e 100644 --- a/pyproj/crs/crs.py +++ b/pyproj/crs/crs.py @@ -7,7 +7,6 @@ import re import threading import warnings -from abc import abstractmethod from typing import Any, Callable, Dict, List, Optional, Tuple, Union from pyproj._crs import ( @@ -1591,7 +1590,6 @@ class CustomConstructorCRS(CRS): """ @property - @abstractmethod def _expected_types(self) -> Tuple[str, ...]: """ These are the type names of the CRS class