Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
  • Loading branch information
koomie committed Mar 2, 2024
1 parent 0aa8e74 commit ca59cbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ def detect_arch(_rocminfo):
else:
return (gpu_arch, idx1)

# Custom decorator to mimic the behavior of kw_only found in Python 3.10

# Custom decorator to mimic the behavior of kw_only found in Python 3.10
def kw_only(cls):
def __init__(self, *args, **kwargs):
for name, value in kwargs.items():
setattr(self, name, value)

cls.__init__ = __init__
return cls

Expand Down

0 comments on commit ca59cbe

Please sign in to comment.