Skip to content

Commit

Permalink
Remove use of deprecated inspect function
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Feb 27, 2023
1 parent 9d2b71b commit e251d36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holmium/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def __init__(
fresh_instance,
):
data = {}
for arg in inspect.getargspec(HolmiumConfig.__init__).args[1:]:

for arg in inspect.getfullargspec(HolmiumConfig.__init__).args[1:]:
setattr(self, arg, locals()[arg])
data[arg] = locals()[arg]
super(HolmiumConfig, self).__init__(**data)
Expand Down

0 comments on commit e251d36

Please sign in to comment.