summaryrefslogtreecommitdiff
path: root/django/contrib/gis/geos/libgeos.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/gis/geos/libgeos.py')
-rw-r--r--django/contrib/gis/geos/libgeos.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
index faf29de0c1..43353e5750 100644
--- a/django/contrib/gis/geos/libgeos.py
+++ b/django/contrib/gis/geos/libgeos.py
@@ -147,11 +147,14 @@ class GEOSFuncFactory:
restype = None
errcheck = None
- def __init__(self, func_name, *args, **kwargs):
+ def __init__(self, func_name, *args, restype=None, errcheck=None, argtypes=None, **kwargs):
self.func_name = func_name
- self.restype = kwargs.pop('restype', self.restype)
- self.errcheck = kwargs.pop('errcheck', self.errcheck)
- self.argtypes = kwargs.pop('argtypes', self.argtypes)
+ if restype is not None:
+ self.restype = restype
+ if errcheck is not None:
+ self.errcheck = errcheck
+ if argtypes is not None:
+ self.argtypes = argtypes
self.args = args
self.kwargs = kwargs
self.func = None