Skip to content

Commit

Permalink
remove keyword-only for item_name
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Jan 18, 2022
1 parent d2f1f0b commit a46b529
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/utils/_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np


def _ensure_int(item, *, item_name=None):
def _ensure_int(item, item_name=None):
"""
Ensure a variable is an integer.
Expand Down Expand Up @@ -65,7 +65,7 @@ def __instancecheck__(cls, other):
}


def _check_type(item, types, *, item_name=None):
def _check_type(item, types, item_name=None):
"""
Check that item is an instance of types.
Expand Down Expand Up @@ -107,7 +107,7 @@ def _check_type(item, types, *, item_name=None):
return item


def _check_value(item, allowed_values, *, item_name=None, extra=None):
def _check_value(item, allowed_values, item_name=None, extra=None):
"""
Check the value of a parameter against a list of valid options.
Expand Down

0 comments on commit a46b529

Please sign in to comment.