Commit Graph

177 Commits

Author SHA1 Message Date
Takeshi KOMIYA
ee6e44a04f Migrate to py3 style type annotation: sphinx.domains.python 2019-06-30 00:56:32 +09:00
Takeshi KOMIYA
84df4c6c2d Fix py domain: duplicated warning does not point the location of source code 2019-06-02 22:50:59 +09:00
Takeshi KOMIYA
557d8d140e
Merge pull request #6365 from tk0miya/refactor_py_domain
Add :abstractmethod: option to py:method directive and support abstractmethod by autodoc
2019-05-19 23:46:34 +09:00
Takeshi KOMIYA
8ed6a9ceb4 Fix #6379: py domain: Module index (py-modindex.html) has duplicate titles 2019-05-19 22:19:13 +09:00
Takeshi KOMIYA
358e582490 Add :abstractmethod: option to py:method directive (refs: #6138) 2019-05-15 00:00:51 +09:00
Takeshi KOMIYA
a142a654fc Add :property: option to py:method directive 2019-05-12 15:53:39 +09:00
Takeshi KOMIYA
e0abb10792 Fix #4777: Add :async: option to py:function and py:method directives 2019-04-23 01:40:37 +09:00
Takeshi KOMIYA
331594e2ca Add :classmethod: and :staticmethod: options to py:method directive 2019-04-13 23:14:59 +09:00
Takeshi KOMIYA
6af3896103 Add PyFunction and PyVariable; directives for python functions and variables 2019-04-13 20:26:07 +09:00
Takeshi KOMIYA
b0b3f5a677 deprecate PyClassmember class 2019-04-07 22:41:10 +09:00
Takeshi KOMIYA
fcc964b66f Add PyAttribute class; a directive for python attribute description 2019-04-07 22:40:08 +09:00
Takeshi KOMIYA
c8334705ca Add PyClassMethod and PyStaticMethod; directives for python method description 2019-04-07 22:39:27 +09:00
Takeshi KOMIYA
dd6c79476f Add PyMethod class; a directive for python method description 2019-04-07 22:39:27 +09:00
Takeshi KOMIYA
e05e349277
Merge pull request #6236 from tk0miya/refactor_pydomain3
Add data accessors and helper methods to PythonDomain
2019-04-06 14:24:30 +09:00
Takeshi KOMIYA
0e837370f5 Add PythonDomain.note_module() to register a python module to the domain 2019-03-31 20:25:09 +09:00
Takeshi KOMIYA
259be8716a Add PythonDomain.note_module() to register a python object to the domain 2019-03-31 20:25:02 +09:00
Takeshi KOMIYA
f7a32746d3 Add "modules" property to PythonDomain 2019-03-31 20:18:11 +09:00
Takeshi KOMIYA
67b56eb472 Add "objects" property to PythonDomain 2019-03-31 19:55:10 +09:00
Takeshi KOMIYA
3fa466b728 Update type annotations for python domain 2019-03-31 19:15:41 +09:00
Takeshi KOMIYA
e008da9926 Merge branch '2.0' 2019-03-29 00:30:09 +09:00
Takeshi KOMIYA
12b682958e refactor PyObject class 2019-03-23 22:45:15 +09:00
Takeshi KOMIYA
700be75a73 Fix #6196: py domain: unexpected prefix is generated 2019-03-23 22:32:37 +09:00
Takeshi KOMIYA
dbefc9865d Clean up import for annotations 2019-03-06 23:44:44 +09:00
Takeshi KOMIYA
b9b6930e28 Fix mypy violations 2019-02-14 00:37:37 +09:00
Takeshi KOMIYA
76e9f57c2e Merge branch '1.8' 2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75 A happy new year! 2019-01-02 16:00:30 +09:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Jon Dufresne
ade973f4e3 Use Python 3 super() argument-less syntax
The form is less verbose and more idiomatic for Python 3 only code.

https://docs.python.org/3/library/functions.html#super
2018-12-15 08:35:55 -08:00
Takeshi KOMIYA
6bc357140d Replace all "unicode" type by "str" 2018-12-15 23:57:43 +09:00
Takeshi KOMIYA
9dfc5e7efe Add docutils-stubs to test deps 2018-12-15 02:42:43 +09:00
Takeshi KOMIYA
565422d666 Add TextlikeNode type for docfields 2018-12-10 01:28:22 +09:00
Takeshi KOMIYA
d6eacf3198 Fix annotations for Directives (Replace N_co with nodes.Node) 2018-12-01 19:49:14 +09:00
Takeshi KOMIYA
02f767d68e Fix annotations for domains 2018-11-30 00:54:48 +09:00
Takeshi KOMIYA
31c4d06a22 refactor: Use super() to call methods of superclass 2018-11-28 01:58:32 +09:00
Takeshi KOMIYA
60a01f2b09
Merge pull request #5665 from tk0miya/fix_typehints
Add sphinx.util.typing:unicode to help mypy-3 migration
2018-11-26 00:34:52 +09:00
Takeshi KOMIYA
3c99d00605 Add sphinx.util.typing:unicode to help mypy-3 migration 2018-11-24 23:19:51 +09:00
Takeshi KOMIYA
f786a890f5 Fix annotations for Domain.resolve_xref() 2018-11-24 22:36:57 +09:00
Takeshi KOMIYA
8491217553 Add IndexEntry class to represent an entry of indices 2018-11-21 10:02:45 +09:00
Takeshi KOMIYA
e7e07fd697 Merge branch '1.8' 2018-10-16 09:57:54 +09:00
Takeshi KOMIYA
a77f3519fa Fix mypy violations 2018-10-16 09:43:58 +09:00
Takeshi KOMIYA
dc44b0d2a9 Merge branch 'master' into HEAD 2018-09-22 22:54:15 +09:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Jon Dufresne
0d6be504ea Remove use of six.iteritems()
In Python 3, dict.items() is always an iterator.
2018-09-11 06:03:34 -07:00
Takeshi KOMIYA
3e57ea0a52 Merge branch '1.7' 2018-07-17 00:37:40 +09:00
Takeshi KOMIYA
50188b570a Fix py domain: rtype field could not handle "None" as a type (refs: #4946) 2018-07-15 18:54:54 +09:00
Takeshi KOMIYA
506d4c87ef Merge branch '1.7' 2018-05-21 23:07:54 +09:00
Takeshi KOMIYA
9ccff74f66 Fix #4946: py domain: type field could not handle "None" as a type 2018-05-19 22:50:10 +09:00
Takeshi KOMIYA
6c08963f25 refactor: Replace Directive by SphinxDirective 2018-05-11 12:10:09 +09:00
Takeshi KOMIYA
93837bb01e Merge branch '1.7' 2018-04-26 01:03:49 +09:00
Takeshi KOMIYA
10d127d017 Revert f4f693eff7 2018-04-26 00:08:32 +09:00