From f1658003faf0f84b2c8551c079126b8737e41ede Mon Sep 17 00:00:00 2001 From: Clemens Lange Date: Fri, 4 Oct 2024 18:01:15 +0200 Subject: [PATCH] Require named arguments to fix pylint too-many-positional-arguments --- hepdata_lib/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hepdata_lib/__init__.py b/hepdata_lib/__init__.py index 2613a81..c1fc9f8 100644 --- a/hepdata_lib/__init__.py +++ b/hepdata_lib/__init__.py @@ -55,7 +55,7 @@ def __init__(self): self.files_to_copy = [] self.additional_resources = [] - def add_additional_resource(self, description, location, copy_file=False, file_type=None, + def add_additional_resource(self, description, location, *, copy_file=False, file_type=None, resource_license=None): """ Add any kind of additional resource. @@ -143,7 +143,7 @@ class Variable: # pylint: disable=too-many-instance-attributes # Eight is reasonable in this case. - def __init__(self, name, is_independent=True, is_binned=True, units="", values=None, + def __init__(self, name, *, is_independent=True, is_binned=True, units="", values=None, zero_uncertainties_warning=True): # pylint: disable=too-many-arguments self.name = name