Commit Graph

15881 Commits

Author SHA1 Message Date
Keewis
cc8baf60ec only transform the types if napoleon_use_param is true 2020-07-16 00:27:00 +02:00
Keewis
660b818636 add type hints and location information 2020-07-16 00:27:00 +02:00
Keewis
922054ed6f replace .format with %-style string interpolation 2020-07-16 00:27:00 +02:00
Keewis
2b981b6abd make sure singletons actually use :obj: 2020-07-16 00:27:00 +02:00
Keewis
fc43f494ac add back the trailing whitespace 2020-07-16 00:27:00 +02:00
Keewis
4fc22cd0c4 use the dedent function imported at module-level 2020-07-16 00:27:00 +02:00
Keewis
f30c0cb9f6 rewrite the invalid token_type test to check the warnings 2020-07-16 00:27:00 +02:00
Keewis
804df88e8d use :class: as default role and only fall back to :obj: for singletons 2020-07-16 00:27:00 +02:00
Keewis
f4817be7a9 use the format method instead of f-strings 2020-07-16 00:26:59 +02:00
Keewis
7d8aaf2c03 remove a debug print 2020-07-16 00:26:59 +02:00
Keewis
fedceb25ff move the binary operator "or" to before the newline 2020-07-16 00:26:59 +02:00
Keewis
4d0b4f2931 add back the trailing whitespace 2020-07-16 00:26:11 +02:00
Keewis
26855f92d8 also test invalid string tokens 2020-07-16 00:26:10 +02:00
Keewis
1140f7b26d also check type specs without actual types 2020-07-16 00:26:10 +02:00
Keewis
d177e58999 reimplement the value set combination function using collections.deque 2020-07-16 00:26:10 +02:00
Keewis
866c822e11 move the warnings to token_type 2020-07-16 00:26:10 +02:00
Keewis
37e02512fc make invalid value sets a literal to avoid further warnings 2020-07-16 00:26:10 +02:00
Keewis
b0da0e5aef remove the default for the default translation 2020-07-16 00:26:10 +02:00
Keewis
af6071e571 expect a warning instead of an error 2020-07-16 00:26:10 +02:00
Keewis
dc8c7ac9f8 update the integration test 2020-07-16 00:26:10 +02:00
Keewis
20e36007fe treat value sets as literals 2020-07-16 00:26:10 +02:00
Keewis
e3b7e16b0a move the regexes to top-level 2020-07-16 00:26:10 +02:00
Keewis
9bfbe252f1 set a default so translations don't to be specified 2020-07-16 00:26:09 +02:00
Keewis
9835f1fff8 test that braces and quotes in strings work 2020-07-16 00:26:09 +02:00
Keewis
eab49125e9 update the splitting regexp to handle braces in strings and escaped quotes 2020-07-16 00:26:09 +02:00
Keewis
ce60b555ee properly use sphinx's logger 2020-07-16 00:26:08 +02:00
Keewis
b846db7e53 emit a warning instead of raising an error 2020-07-16 00:25:19 +02:00
Keewis
27733d6f61 replace the custom role with markup 2020-07-16 00:24:27 +02:00
Keewis
e1d7edac25 rename the configuration option 2020-07-16 00:24:27 +02:00
Keewis
ad89b1f76a replace the hard-coded mapping of translations with a config option 2020-07-16 00:22:56 +02:00
Keewis
2882c3465a fix the expected parameters section to match the current status 2020-07-16 00:22:56 +02:00
Keewis
fc70205fb4 get the type converter function to work, verified by new tests 2020-07-16 00:22:56 +02:00
Keewis
25937f745a move tokenize_type_spec to its own function and add tests for it 2020-07-16 00:22:56 +02:00
Keewis
8ab210f1b0 don't use the obj role if it is not necessary 2020-07-16 00:22:56 +02:00
Keewis
ace933107a move the numpy type spec parsing function out of NumpyDocstring 2020-07-16 00:22:55 +02:00
Keewis
e9822139ee more flake8 2020-07-16 00:22:55 +02:00
Keewis
70363c3e2f flake8 2020-07-16 00:22:35 +02:00
Keewis
bd33b61d64 update the translations 2020-07-16 00:21:59 +02:00
Keewis
bdea34e54e don't treat instance as special 2020-07-16 00:21:59 +02:00
Keewis
bafb24dd93 actually apply the type conversion 2020-07-16 00:21:59 +02:00
Keewis
bc25a3d136 try to mark literals as such 2020-07-16 00:21:55 +02:00
Keewis
b1f43d2fff use textwrap for a normal indentation depth 2020-07-16 00:19:58 +02:00
Keewis
a7bbedfbb7 add a test for the parameter type conversions 2020-07-16 00:19:22 +02:00
Takeshi KOMIYA
e65021fb9b
Merge pull request #7954 from tk0miya/2076_exclude_members
Autodoc: Allow overriding of exclude-members in skip-member function
2020-07-16 02:27:33 +09:00
Takeshi KOMIYA
ce62756cfc
Merge pull request #7951 from tk0miya/7745_docname_containing_spaces
Fix #7745: html: inventory is broken if the docname contains a space
2020-07-16 02:27:03 +09:00
Peter Bell
ea0fbd21d5 Add type check to aliases dict 2020-07-15 17:28:34 +01:00
Takeshi KOMIYA
6c8d100f56
Merge pull request #7959 from fritzr/3.x
Fix typo in prepare_docstring() warning
2020-07-16 00:58:46 +09:00
Jakob Lykke Andersen
c4d7797003 Merge branch '3.1.x' into c_optimization 2020-07-15 13:34:06 +02:00
Joel Nothman
2b843dd856 Rm unused import 2020-07-15 20:49:05 +10:00
Jakob Lykke Andersen
a4494e87b0
Merge pull request #7960 from jakobandersen/c_deepcopy
C, don't deepcopy as deep on handling enumerators
2020-07-15 12:05:20 +02:00