Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 12, 2024
1 parent 33119c7 commit 3110284
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#

import inspect
import re
import os
import re
import sys

from abc import ABC, abstractmethod
Expand Down Expand Up @@ -54,9 +54,7 @@ def load_generator(module: str) -> Generator:
Generator: generator object
"""

module_name = re.sub(
r"\.py[co]?$", "", os.path.basename(module)
) # Extract module name from path
module_name = re.sub(r"\.py[co]?$", "", os.path.basename(module)) # Extract module name from path

try:
if not module_name in _loaded_generators:
Expand Down

0 comments on commit 3110284

Please sign in to comment.