Skip to content

Commit

Permalink
Code reformat
Browse files Browse the repository at this point in the history
New passes of "pre-commit run -a"

Everything is correct now:
Check hooks apply to the repository......................................Passed
Check for useless excludes...............................................Passed
check for added large files..............................................Passed
check for merge conflicts................................................Passed
check yaml...............................................................Passed
fix end of files.........................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
Enforce Python 3.9+ idioms...............................................Passed
black....................................................................Passed
isort....................................................................Passed
Validate GitHub Workflows................................................Passed
Lint GitHub Actions workflow files.......................................Passed
  • Loading branch information
LudovicRousseau committed Oct 2, 2024
1 parent e5ab805 commit d276747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smartcard/ClassLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_class(fullClassName, parentClass=None):
# Assert that the class is a subclass of parentClass.
if parentClass is not None:
if not issubclass(aClass, parentClass):
raise TypeError("%s is not a subclass of %s" % (fullClassName, parentClass))
raise TypeError(f"{fullClassName} is not a subclass of {parentClass}")

# Return a reference to the class itself, not an instantiated object.
return aClass

0 comments on commit d276747

Please sign in to comment.