From 7b77505bc9b0def3a0ca1fef9eeb20f092d6a5d2 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sun, 20 Oct 2019 23:48:11 +0500 Subject: [PATCH] Removed unused *args and **kwargs from GEOSFuncFactory.__init__(). Follow-up to ff17ef1adab864d2c165d50501fa0b0684808d07. --- django/contrib/gis/geos/libgeos.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py index dadaff03b7..dc041a41a1 100644 --- a/django/contrib/gis/geos/libgeos.py +++ b/django/contrib/gis/geos/libgeos.py @@ -139,7 +139,7 @@ class GEOSFuncFactory: restype = None errcheck = None - def __init__(self, func_name, *args, restype=None, errcheck=None, argtypes=None, **kwargs): + def __init__(self, func_name, *, restype=None, errcheck=None, argtypes=None): self.func_name = func_name if restype is not None: self.restype = restype @@ -147,8 +147,6 @@ class GEOSFuncFactory: self.errcheck = errcheck if argtypes is not None: self.argtypes = argtypes - self.args = args - self.kwargs = kwargs def __call__(self, *args, **kwargs): return self.func(*args, **kwargs)