Python 3.8 support
parent
f8b6a6151c
commit
fc1d78f758
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
templates_path = ["_templates"]
|
||||
source_suffix = ".rst"
|
||||
master_doc = "index"
|
||||
project = u"pyexample"
|
||||
copyright = u"2015, readthedocs"
|
||||
author = u"readthedocs"
|
||||
version = "0.1"
|
||||
release = "0.1"
|
||||
language = None
|
||||
exclude_patterns = ["_build"]
|
||||
pygments_style = "sphinx"
|
||||
todo_include_todos = False
|
||||
html_theme = "alabaster"
|
||||
html_static_path = ["_static"]
|
||||
htmlhelp_basename = "pyexampledoc"
|
||||
extensions = ["sphinx.ext.autodoc", "autoapi.extension"]
|
||||
autoapi_type = "python"
|
||||
autoapi_dirs = ["example"]
|
||||
autoapi_file_pattern = "*.py"
|
@ -0,0 +1,37 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Example module
|
||||
|
||||
This is a description
|
||||
"""
|
||||
from typing import Optional
|
||||
|
||||
|
||||
def f_simple(a, b, /, c, d, *, e, f):
|
||||
print(a, b, c, d, e, f)
|
||||
|
||||
|
||||
def f_comment(a, b, /, c, d, *, e, f):
|
||||
# type: (int, int, Optional[int], Optional[int], float, float) -> None
|
||||
print(a, b, c, d, e, f)
|
||||
|
||||
|
||||
def f_annotation(a: int, b: int, /, c: Optional[int], d: Optional[int], *, e: float, f: float) -> None:
|
||||
print(a, b, c, d, e, f)
|
||||
|
||||
|
||||
def f_arg_comment(
|
||||
a, # type: int
|
||||
b, # type: int
|
||||
/,
|
||||
c, # type: Optional[int]
|
||||
d, # type: Optional[int]
|
||||
*,
|
||||
e, # type: float
|
||||
f, # type: float
|
||||
):
|
||||
# type: (...) -> None
|
||||
print(a, b, c, d, e, f)
|
||||
|
||||
|
||||
def f_no_cd(a: int, b: int, /, *, e: float, f: float):
|
||||
print(a, b, e, f)
|
@ -0,0 +1,26 @@
|
||||
.. pyexample documentation master file, created by
|
||||
sphinx-quickstart on Fri May 29 13:34:37 2015.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to pyexample's documentation!
|
||||
=====================================
|
||||
|
||||
.. toctree::
|
||||
|
||||
autoapi/index
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
Loading…
Reference in New Issue