Takeshi KOMIYA
88e8ebbe19
Close #7596 : py domain: Change a type annotation for variables to a hyperlink
2020-05-04 14:30:20 +09:00
Takeshi KOMIYA
8f4c2fb08d
refactor: py domain: Add type_to_xref() utility
2020-05-04 14:29:55 +09:00
Takeshi KOMIYA
41b4a77dea
Add stacklevel parameter to warnings.warn() call
2020-05-03 23:34:35 +09:00
Takeshi KOMIYA
87308d9607
Close #7143 : py domain: Add :final: option to py:*: directives
2020-04-28 01:24:29 +09:00
Takeshi KOMIYA
a4edbc1104
Merge pull request #7462 from tk0miya/7461_empty_tuple
...
Fix #7461 : py domain: fails with IndexError for empty tuple in type annotation
2020-04-13 23:34:15 +09:00
Takeshi KOMIYA
2e219366c4
Fix #7461 : py domain: fails with IndexError for empty tuple in type annotation
2020-04-12 12:57:22 +09:00
Takeshi KOMIYA
fd7c1d76b6
Merge branch '3.0.x' into 3.x
2020-04-11 00:04:45 +09:00
Takeshi KOMIYA
d9d381de11
Fix #7445 : a return annotation `None
` is not converted to a hyperlink
2020-04-10 02:07:02 +09:00
Takeshi KOMIYA
b2ab2c6325
Fix #7428 : py domain: a reference to class `None
` emits a nitpicky warning
2020-04-08 01:49:24 +09:00
Takeshi KOMIYA
4c1b8b8db6
Merge branch '3.0.x' into 3.x
2020-04-05 23:04:19 +09:00
Takeshi KOMIYA
3a95fa7336
Merge pull request #7363 from tk0miya/refactor_pydomain
...
refactor: py domain: Use namedtuple for python objects and modules
2020-03-30 01:34:40 +09:00
Takeshi KOMIYA
fe9473f42e
Fix #7219 : py:module directive generates incorrect index entry
2020-03-29 19:37:21 +09:00
Takeshi KOMIYA
ce25d0080e
Fix #7219 : py:function directive generates incorrect index entry
2020-03-29 19:37:19 +09:00
Takeshi KOMIYA
8edae5fe28
Merge pull request #7356 from tk0miya/7301_node_id
...
Fix #7301 : Allow . and _ for node_id
2020-03-22 23:42:56 +09:00
Takeshi KOMIYA
4889415bd8
refactor: py domain: Use namedtuple for python modules
2020-03-22 22:41:27 +09:00
Takeshi KOMIYA
89c2905ed3
refactor: py domain: Use namedtuple for python objects
2020-03-22 22:09:50 +09:00
Takeshi KOMIYA
b0a6b3f285
Close #7341 : py domain: type annotations are converted to cross refs
2020-03-22 17:10:00 +09:00
Takeshi KOMIYA
7bbf79c313
Fix #7301 : Allow . and _ for node_id
...
In development of 3.0, Sphinx starts to obey to the rule of
"Identifier Normalization" of docutils. This extends it to allow
dots(".") and underscores("_") for node identifier.
It allows Sphinx to generate node identifier from source string as
possible as it is (bacause dots and underscores are usually used in
many programming langauges).
This change will keep not to break hyperlinks as possible.
2020-03-22 16:39:00 +09:00
Takeshi KOMIYA
b72bc26c1a
Fix #7334 : py domain: Disable smartquotes for defvalues of arguments
2020-03-19 00:31:47 +09:00
Takeshi KOMIYA
5c0d0438c4
Merge pull request #6990 from tk0miya/function_signature
...
py domain: Allow to make a style for arguments of functions and methods
2020-03-14 17:42:04 +09:00
Takeshi KOMIYA
50cf68e0d4
py domain: Allow to make a style for arguments of functions and methods (refs: #6417 )
2020-03-14 16:55:55 +09:00
Takeshi KOMIYA
d134b51927
Fix #7304 : py domain: Improve warning messages on parsing failure
2020-03-14 13:54:49 +09:00
Takeshi KOMIYA
42be967b2d
Merge branch '2.x' into 3.x
2020-03-10 01:14:39 +09:00
Takeshi KOMIYA
a73617c51b
Merge pull request #7275 from tk0miya/refactor_pydecorator
...
py domain: refactor PyDecoratorFunction and PyDecoratorMethod
2020-03-08 15:07:09 +09:00
Takeshi KOMIYA
8e1934b6a1
Close #7246 : Drop special cross reference helper for exceptions, functions and methods
2020-03-07 23:19:54 +09:00
Takeshi KOMIYA
d49bec1c67
py domain: Deprecate PyDecoratorMixin
2020-03-07 23:13:06 +09:00
Takeshi KOMIYA
3cadc82559
py domain: refactor PyDecoratorFunction and PyDecoratorMethod
2020-03-07 23:12:41 +09:00
Takeshi KOMIYA
cfb9f8387b
Fix #7266 : Update deprecation messages for PyClassmember and PyModulelevel
2020-03-07 22:56:37 +09:00
Takeshi KOMIYA
7652052bf8
Merge pull request #7254 from tk0miya/6895_suppress_builtin_nitpicky_warning
...
Fix #6895 : py domain: Do not emit nitpicky warnings for built-in types
2020-03-07 02:12:50 +09:00
Takeshi KOMIYA
729efd28b0
py domain: Generate node_id for objects in the right way
2020-03-07 02:00:50 +09:00
Takeshi KOMIYA
5ff3b9dc4d
py domain: Generate node_id for modules in the right way
2020-03-07 01:48:17 +09:00
Takeshi KOMIYA
09623a97d0
Merge branch '2.x' into 3.x
2020-03-05 23:11:14 +09:00
Takeshi KOMIYA
34460157e7
Fix #6895 : py domain: Do not emit nitpicky warnings for built-in types
2020-03-05 22:57:56 +09:00
Takeshi KOMIYA
523b653cd9
Fix typo
2020-03-05 20:51:43 +09:00
Daniel Hahler
58b39918fd
Use a string with warning in handle_signature
...
Previously it would pass in the exception object itself, which then
might crash filters that are using `record.msg.startswith` etc.
The warning was triggered for me with `sig = foo: int = -1`, where it
appears to not handle negative numbers (have not investigated).
2020-03-05 01:15:55 +01:00
Takeshi KOMIYA
728c6cb5ee
refactor: Update type annotation for python domain
2020-03-04 00:24:08 +09:00
Takeshi KOMIYA
de52e77bc0
refactor: Set source_info to nodes
2020-02-29 17:00:58 +09:00
Takeshi KOMIYA
01eff916d1
Fix missing commas after PEP-570 separators
2020-02-24 02:03:15 +09:00
Takeshi KOMIYA
2b70875f6a
Merge branch 'drop_desc_signature_first' into 3.x
2020-02-22 17:39:56 +09:00
Takeshi KOMIYA
c4d7f4d6c8
py domain: Use AST parser to convert signature to doctree
2020-02-16 01:52:04 +09:00
Takeshi KOMIYA
df3c0448dd
Deprecate desc_signature['first']
2020-02-09 00:58:42 +09:00
Takeshi KOMIYA
2e87ee85a2
Merge branch '2.0'
2020-02-09 00:57:53 +09:00
Takeshi KOMIYA
ecf7307023
Merge branch '2.0' into 6785_attr_can_refer_props
2020-02-06 22:30:50 +09:00
Takeshi KOMIYA
179a1f9cc2
py domain: Support type annotations for variables
...
This adds ``:type:`` and ``:value:`` options to both ``py:data``
and ``py:attribute`` directives. It allows to describe its
annotation in detail.
2020-02-01 12:58:27 +09:00
Takeshi KOMIYA
33fcd393ab
Fix #6785 : py domain: :py:attr: is able to refer properties again
2020-01-25 13:55:27 +09:00
Takeshi KOMIYA
b968bb91e9
Close #6830 : autodoc: consider a member private if docstring has "private" metadata
2020-01-04 13:28:07 +09:00
Takeshi KOMIYA
e628afd5cd
Merge branch '2.0'
2020-01-01 11:39:46 +09:00
Takeshi KOMIYA
fc523c3ccf
A happy new year!
2020-01-01 11:15:42 +09:00
Takeshi KOMIYA
5640cf879f
Merge branch '2.0'
2019-12-22 18:47:30 +09:00
Antony Lee
814513ba9f
Replace a and b or c
by the more legible b if a or c
.
2019-12-21 11:50:18 +01:00