Skip to content

Commit

Permalink
Fix failing test_signature_parameters_constructors_overloaded_updated…
Browse files Browse the repository at this point in the history
…_match
  • Loading branch information
hoxbro committed Dec 13, 2024
1 parent c803865 commit 8f46f78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions param/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def __init__(
):
...

def __init__(self, default=Undefined, **params):
def __init__(self, default: T = Undefined, **params):
"""
Call the superclass's __init__ and set instantiate=True if the
default is dynamic.
Expand Down Expand Up @@ -687,7 +687,7 @@ def __init__(
...

@_deprecate_positional_args
def __init__(self, default=Undefined, *, bounds=Undefined, softbounds=Undefined,
def __init__(self, default: T =Undefined, *, bounds=Undefined, softbounds=Undefined,
inclusive_bounds=Undefined, step=Undefined, set_hook=Undefined, **params):
"""
Initialize this parameter object and store the bounds.
Expand Down Expand Up @@ -902,7 +902,7 @@ def __init__(
):
...

def __init__(self, default=Undefined, **kwargs):
def __init__(self, default: T = Undefined, **kwargs):
super().__init__(default=default, **kwargs)

def _validate_value(self, val, allow_None):
Expand Down Expand Up @@ -2159,7 +2159,7 @@ def __init__(
...

@_deprecate_positional_args
def __init__(self, *, class_, default=Undefined, instantiate=Undefined, is_instance=Undefined, **params):
def __init__(self, *, class_, default: T = Undefined, instantiate=Undefined, is_instance=Undefined, **params):
self.class_ = class_
self.is_instance = is_instance
super().__init__(default=default,instantiate=instantiate,**params)
Expand Down

0 comments on commit 8f46f78

Please sign in to comment.