Skip to content

Commit

Permalink
Revert "ConfigModule inherits from ModuleType"
Browse files Browse the repository at this point in the history
Otherwise Sphinx doesn't document the `Configuration`property.
  • Loading branch information
Helveg committed May 10, 2023
1 parent d4a5392 commit 0d1ab9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bsb/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import glob
import itertools
from shutil import copy2 as copy_file
from types import ModuleType
import builtins
import traceback

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


class ConfigurationModule(ModuleType):
# ConfigurationModule should not inherit from `ModuleType`, otherwise Sphinx doesn't
# document all the properties.
class ConfigurationModule:
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 0d1ab9e

Please sign in to comment.