Todo: 集成多平台 解决因SaiNiu线程抢占资源问题 本地提交测试环境打包 和 正式打包脚本与正式环境打包bat 提交Python32环境包 改进多日志文件生成情况修改打包日志细节
This commit is contained in:
51
Utils/PythonNew32/Lib/test/test_pydoc/pydoc_mod.py
Normal file
51
Utils/PythonNew32/Lib/test/test_pydoc/pydoc_mod.py
Normal file
@@ -0,0 +1,51 @@
|
||||
"""This is a test module for test_pydoc"""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import types
|
||||
import typing
|
||||
|
||||
__author__ = "Benjamin Peterson"
|
||||
__credits__ = "Nobody"
|
||||
__version__ = "1.2.3.4"
|
||||
__xyz__ = "X, Y and Z"
|
||||
|
||||
class A:
|
||||
"""Hello and goodbye"""
|
||||
def __init__():
|
||||
"""Wow, I have no function!"""
|
||||
pass
|
||||
|
||||
class B(object):
|
||||
NO_MEANING: str = "eggs"
|
||||
pass
|
||||
|
||||
class C(object):
|
||||
def say_no(self):
|
||||
return "no"
|
||||
def get_answer(self):
|
||||
""" Return say_no() """
|
||||
return self.say_no()
|
||||
def is_it_true(self):
|
||||
""" Return self.get_answer() """
|
||||
return self.get_answer()
|
||||
def __class_getitem__(self, item):
|
||||
return types.GenericAlias(self, item)
|
||||
|
||||
def doc_func():
|
||||
"""
|
||||
This function solves all of the world's problems:
|
||||
hunger
|
||||
lack of Python
|
||||
war
|
||||
"""
|
||||
|
||||
def nodoc_func():
|
||||
pass
|
||||
|
||||
|
||||
list_alias1 = typing.List[int]
|
||||
list_alias2 = list[int]
|
||||
c_alias = C[int]
|
||||
type_union1 = typing.Union[int, str]
|
||||
type_union2 = int | str
|
||||
Reference in New Issue
Block a user