Skip to content

Commit

Permalink
ConfigModule inherits from ModuleType
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Apr 20, 2023
1 parent 2ae66e8 commit 1ce9708
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bsb/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import glob
import itertools
from shutil import copy2 as copy_file
from types import ModuleType
import builtins
import traceback

Expand Down Expand Up @@ -44,12 +45,9 @@
ConfigurationAttribute.__module__ = __name__


class ConfigurationModule:
class ConfigurationModule(ModuleType):
from . import types, refs

def __init__(self, name):
self.__name__ = name

parsers = parsers
attr = staticmethod(attr)
list = staticmethod(list)
Expand Down

0 comments on commit 1ce9708

Please sign in to comment.