mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
32 lines
387 B
Python
32 lines
387 B
Python
"""
|
|
submodule
|
|
"""
|
|
raise RuntimeError('This module should not get imported')
|
|
|
|
|
|
def decorator(f):
|
|
return f
|
|
|
|
|
|
@decorator
|
|
def func1(a, b):
|
|
"""
|
|
this is func1
|
|
"""
|
|
return a, b
|
|
|
|
|
|
@decorator
|
|
class Class1(object):
|
|
"""
|
|
this is Class1
|
|
"""
|
|
|
|
|
|
class Class3(object):
|
|
"""
|
|
this is Class3
|
|
"""
|
|
class_attr = 42
|
|
"""this is the class attribute class_attr"""
|