docs: Fix broken autodocs
This commit is contained in:
parent
6d93938745
commit
25b14cbfb3
@ -29,6 +29,8 @@ class Mock(object):
|
||||
def __getattr__(self, name):
|
||||
if name in ('__file__', '__path__'):
|
||||
return '/dev/null'
|
||||
elif name[0] == name[0].upper() and not name.startswith('MIXER_TRACK'):
|
||||
return type(name, (), {})
|
||||
else:
|
||||
return Mock()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user