ProGamerGov
b2fe07e1a1
Properly support of in docstring type specifiers ( #10738 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-08-02 23:43:32 +01:00
Jean-François B
f72a25ce76
Merge branch '5.1.x' into 5.x
2022-08-01 21:05:47 +02:00
daniel.eades
964fcb2e07
Fix flake8 5.0.0 reported formatting errors
2022-08-01 20:55:47 +02:00
Jakob Lykke Andersen
64c1b2be2e
C++, restructure tests
2022-07-29 18:21:34 +02:00
Jakob Lykke Andersen
aa43a37865
C++, fix parsing of certain non-type template parameters
...
Specifically 'template<int (X::*)(bool)...>'
2022-07-29 18:14:45 +02:00
Jakob Lykke Andersen
66f98957b1
C++, ensure merging case is as assumed
2022-07-29 18:14:45 +02:00
Jeremy Maitin-Shepard
5b97ec522a
[C++] Ensure consistent non-specialization template argument representation
...
Previously, in certain cases the template arguments of
non-specializations were retained, leading to incorrect merging of symbols.
2022-07-29 18:14:41 +02:00
Jeremy Maitin-Shepard
3bd80e7c54
[C++] Allow template prefix on union declarations
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
33f5474951
[C++] Allow trailing requires-clause on constructors
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
9694aa5a26
[C++] Allow trailing-requires-clause on functions without a template prefix
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
ac1b0d490c
[C++] Support requires-clause in more places
...
Previously a C++20 requires-clause was only supported on `function`
declarations. However, the C++ standard allows a require-clause on
class/union templates, alias templates, and variable templates, and
also allows a requires clause after each template parameter list, not
just the final one.
This moves the requiresClause to be a property of `ASTTemplateParams`
rather than `ASTDeclaration` to better match the C++ grammar and
allows requires clauses in many places that are supported by C++20 but
were not previously allowed by Sphinx, namely:
- On class templates, alias templates, and variable templates
- After each template parameter list, not just the last one.
- After the template parameter list in template template parameters.
When encoding the id, the requires clause of the last template
parameter list is treated specially in order to preserve compatibility
with existing v4 ids.
2022-07-24 21:37:56 +02:00
Adam Turner
e3337c78c6
Update include_patterns implementation ( #10680 )
2022-07-23 21:19:35 +01:00
Adam Turner
490a8a9162
Add include_patterns as the opposite of exclude_patterns ( #10518 )
2022-07-17 21:44:33 +01:00
Takeshi KOMIYA
e7fc03bce2
Allow specifying multiple CSS files in themes ( #10465 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2022-07-17 12:27:43 +01:00
danieleades
25d379fb53
Lint with flake8-bugbear ( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-07-12 22:55:57 +01:00
Jeremy Maitin-Shepard
66f9ee4afd
Make -P (pdb) work better with exceptions triggered from events
...
Previously, if an exception was raised from an event listener, and the
`-P` option was specified, the debugger would be started not for the
original error but for the `ExtensionError` wrapping it that was
raised by `EventManager.emit`. That made it difficult to debug the
error.
With this change, when `-P` is specified, wrapping of errors in
`ExtensionError` is disabled, which allows pdb to debug the original
error.
2022-07-04 18:48:44 -07:00
danieleades
12e86ff0e1
Use the flake8-comprehensions lint plugin ( #10601 )
2022-06-26 14:43:05 +01:00
Joachim Jablon
663a5b7781
py domain: Ignore aliases for resolving :any: cross-references ( #10089 )
...
Co-authored-by: Joachim Jablon <joachim.jablon@people-doc.com >
2022-06-26 13:04:15 +01:00
Antony Lee
03c1e1b15c
Replace napoleon.iterators by simpler stack implementation ( #9856 )
2022-06-26 12:40:42 +01:00
Jeremy Maitin-Shepard
1198fbe7f9
Ensure ObjectDescription signature nodes include line numbers ( #10249 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-06-23 21:48:32 +01:00
Martin Liška
ea46202565
Fix parsing of options with enabled option_emphasise_placeholders ( #10565 )
2022-06-19 22:51:48 +01:00
marxin
3a269ee590
Fix usage of enable_search_shortcuts theme config value.
...
The option value is not properly propagated to Java script.
2022-06-17 21:21:27 +02:00
Adam Turner
70f950cae0
Remove traces of Python 2 and 3.5 ( #10560 )
2022-06-16 21:37:46 +01:00
Ezio Melotti
1a1491b8a7
Show the repr of the value in some warnings ( #10439 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com >
2022-06-16 21:07:25 +01:00
Martin Liška
f789148fa2
Allow emphasising placeholders in option directives ( #10366 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com >
2022-06-16 20:46:01 +01:00
Doug Hellmann
9c9a52d92b
logging: always show source locations as absolute paths ( #10460 )
2022-06-16 19:51:49 +01:00
Adam Turner
6ef22d2613
Increase static typing strictness ( #10530 )
2022-06-16 19:50:01 +01:00
Takeshi KOMIYA
1031175418
Merge pull request #10551 from AA-Turner/fix-extra-whitespace
...
Remove extra space from the unparser
2022-06-17 03:02:48 +09:00
Takeshi KOMIYA
4d7558e968
Merge branch '5.0.x' into 5.x
2022-06-17 02:19:33 +09:00
Adam Turner
b8a38f037b
Special case **
2022-06-15 10:15:53 +01:00
Adam Turner
3dc6ed166f
Add higher level test
2022-06-15 09:29:35 +01:00
Adam Turner
b58ef001ac
Remove extra space from the unparser
2022-06-14 09:54:01 +01:00
Takeshi KOMIYA
29edce9243
test: Add testcase for autodoc_inherit_docstring and attributes (refs: #10539 )
2022-06-14 02:49:07 +09:00
Daniel Eades
89210fc275
remove unnecessary list comprehension (C416)
2022-06-03 13:15:43 +01:00
Daniel Eades
55a0143df7
remove unnecessary list calls around 'sorted' (C413)
2022-06-03 13:15:42 +01:00
Takeshi KOMIYA
4a9d80b008
Merge branch '5.0.x' into 5.x
2022-06-03 02:19:28 +09:00
Takeshi KOMIYA
ab58bbaed7
Merge pull request #10502 from AA-Turner/ifconfig-fix
...
`ifconfig`: Add a meta node to fix iteration
2022-06-03 02:15:50 +09:00
Adam Turner
efdbe06eea
Review comments
2022-06-01 18:10:55 +01:00
Adam Turner
91f90a5fb5
Fix test
2022-06-01 00:50:41 +01:00
Adam Turner
23a4b61415
Add a test
2022-06-01 00:35:28 +01:00
Adam Turner
9fad9d98c2
Fix fake link in test
2022-05-31 17:15:19 +01:00
Adam Turner
d066d23067
Add a test
2022-05-31 17:14:01 +01:00
Adam Turner
41ac59ef6b
Spelling (language)
2022-05-30 12:35:08 +01:00
Takeshi KOMIYA
a904ab563a
test: Change URL of testcase
2022-05-30 02:06:30 +09:00
Adam Turner
200414982c
Update test
2022-05-28 19:55:30 +01:00
Adam Turner
78c478a579
Merge remote-tracking branch 'upstream/5.0.x' into lang-none-en
2022-05-28 19:21:44 +01:00
Adam Turner
479e48266c
Update warning, revert my original warning patch
2022-05-28 19:17:46 +01:00
Adam Turner
a3d0983552
Add warning
2022-05-28 19:06:48 +01:00
Adam Turner
57e4a2f4cc
Fix case where language isn't set
2022-05-28 00:06:29 +01:00
Adam Turner
20a1775c83
Add test
2022-05-27 23:51:40 +01:00