Jon Dufresne
d41b14f20e
Remove _TranslationProxy methods that duplicate UserString
...
The warning in the comment:
> replace function from UserString; it instantiates a self.__class__ for
> the encoding result
Doesn't apply to these methods as they return non text types. Mostly
bool. By removing these methods, there is less to maintain, annotate,
etc.
2018-12-09 12:07:48 -08:00
Takeshi KOMIYA
b13a6ff3e6
Merge pull request #5739 from tk0miya/fix_typehints_for_minor
...
Fix annotations (some modules)
2018-12-10 01:39:43 +09:00
Takeshi KOMIYA
375ab2ac78
Fix annotations
2018-12-10 01:09:45 +09:00
Takeshi KOMIYA
f05eb1e8ec
Merge pull request #5738 from tk0miya/fix_typehints_for_footnotes
...
Fix annotations for footnotes
2018-12-10 00:25:47 +09:00
Takeshi KOMIYA
400d3a5aa6
Merge pull request #5737 from tk0miya/refactor_rubric_rendering
...
refactor: special rubric for footnotes
2018-12-10 00:14:21 +09:00
Takeshi KOMIYA
a06ab0f8e9
Fix annotations for footnotes
2018-12-10 00:08:50 +09:00
Takeshi KOMIYA
389f756f88
refactor: special rubric for footnotes
2018-12-10 00:07:25 +09:00
Takeshi KOMIYA
385d6a6572
Merge pull request #5735 from tk0miya/fix_typehints_for_minor
...
Fix annotations
2018-12-08 23:44:53 +09:00
Takeshi KOMIYA
85d2d6da72
Merge pull request #5736 from tk0miya/mypy-0.650
...
Fix a mypy violation
2018-12-08 23:43:35 +09:00
Takeshi KOMIYA
2748c52d5e
Fix a mypy violation
2018-12-08 19:19:28 +09:00
Takeshi KOMIYA
bc081e44f8
Fix annotations
2018-12-08 15:59:02 +09:00
Takeshi KOMIYA
559c820214
Merge pull request #5733 from tk0miya/fix_typehints_for_minor
...
Update type annotations
2018-12-08 02:52:09 +09:00
Takeshi KOMIYA
8ef8ace89c
Update type annotations
2018-12-08 02:35:28 +09:00
Takeshi KOMIYA
62c7ad65df
Merge pull request #5732 from tk0miya/fix_typehints_for_N_co
...
Remove N_co type (unused)
2018-12-08 02:12:55 +09:00
Takeshi KOMIYA
018816801e
Remove N_co type (unused)
2018-12-08 01:09:13 +09:00
Takeshi KOMIYA
e965d3c947
Merge pull request #5731 from tk0miya/refactor_io4
...
Refactor `sphinx.io`: Remove unused codes
2018-12-08 01:08:42 +09:00
Takeshi KOMIYA
6e8ff897f7
Merge pull request #5730 from tk0miya/fix_typehints_for_DirectiveOption
...
Add DirectiveOption type to an entry of Directive.option_spec
2018-12-08 01:06:22 +09:00
Takeshi KOMIYA
ac5cbfc618
Remove SphinxBaseFileInput.decode() because it is not used in py3
2018-12-07 23:24:39 +09:00
Takeshi KOMIYA
534583cfa6
Skip meaningless publisher.set_components() call
...
"parser" component is already passed on initialization. So it is
not needed to call `set_components()` method.
2018-12-07 23:24:39 +09:00
Takeshi KOMIYA
02f8d26fd3
Add DirectiveOption type to an entry of Directive.option_spec
2018-12-07 23:23:08 +09:00
Takeshi KOMIYA
4493d7bf07
Merge pull request #5729 from tk0miya/refactor_io
...
Add UnicodeDecodeErrorHandler as a error_handler for open()
2018-12-07 23:22:15 +09:00
Takeshi KOMIYA
1d2929c806
Merge pull request #5726 from tk0miya/refactor_io2
...
Process prolog and epilog on RSTParser (instead Input component)
2018-12-07 22:56:50 +09:00
Takeshi KOMIYA
c62b1c1f7a
Add UnicodeDecodeErrorHandler as a error_handler for open()
2018-12-07 22:53:12 +09:00
Takeshi KOMIYA
c8ce761a73
deprecate SphinxRSTFileInput
2018-12-05 23:11:16 +09:00
Takeshi KOMIYA
8a6179aa61
Process prolog and epilog on RSTParser (instead Input component)
2018-12-05 23:11:16 +09:00
Takeshi KOMIYA
ca793d3595
refactor: RSTParser should inherit sphinx.parsers.Parser
2018-12-05 23:10:23 +09:00
Takeshi KOMIYA
5fa8ca492b
Add prepend_prolog() and append_epilog()
2018-12-05 23:10:23 +09:00
Takeshi KOMIYA
039582395c
Merge pull request #5717 from tk0miya/refactor_mock
...
refactor ``mock()`` to based on PEP-451 implementation
2018-12-05 23:01:39 +09:00
Takeshi KOMIYA
c2fcb82221
Merge pull request #5718 from tk0miya/refactor_addnodes
...
refactor: Use app.add_node() to register Sphinx own nodes
2018-12-05 01:02:26 +09:00
Takeshi KOMIYA
4137e3e553
Merge pull request #5721 from tk0miya/fix_typehints_for_Catalog.add
...
Fix annotation of Catalog.add(); it takes an Element object
2018-12-05 00:45:28 +09:00
Takeshi KOMIYA
5b9016af71
Merge pull request #5723 from tk0miya/fix_typehints_for_nested_parse_with_titles
...
Fix annotations for nested_parse_with_titles()
2018-12-05 00:37:11 +09:00
Takeshi KOMIYA
ca92ab7bb5
Merge pull request #5722 from tk0miya/refactor_transforms
...
refactor: Use "self.config" accessor to get it simply
2018-12-05 00:23:35 +09:00
Takeshi KOMIYA
446f92362b
Install abbreviation node forcedly
2018-12-05 00:05:51 +09:00
Takeshi KOMIYA
773568a4e2
refactor: Use app.add_node() to register Sphinx own nodes
2018-12-05 00:05:51 +09:00
Takeshi KOMIYA
4ca39f2d25
Fix typo in CHANGES
2018-12-04 23:57:02 +09:00
Takeshi KOMIYA
1a50d34520
refactor `mock()
` to based on PEP-451 implementation
2018-12-04 23:57:01 +09:00
Takeshi KOMIYA
ab3eb1b61d
Add testcases for mock()
2018-12-04 23:57:01 +09:00
Takeshi KOMIYA
624365e70f
Fix annotation of Catalog.add(); it takes an Element object
2018-12-04 23:46:50 +09:00
Takeshi KOMIYA
14644b78f7
Fix annotations for nested_parse_with_titles()
2018-12-04 23:38:30 +09:00
Takeshi KOMIYA
606e17feb9
refactor: Use "self.config" accessor to get it simply
2018-12-04 23:36:25 +09:00
Takeshi KOMIYA
de37ad76a1
Merge pull request #5719 from tk0miya/refactor_NodeMatcher
...
refactor NodeMatcher for mypy friendly
2018-12-04 23:31:33 +09:00
Takeshi KOMIYA
b61cffd82c
refactor NodeMatcher for mypy friendly
2018-12-04 23:03:12 +09:00
Takeshi KOMIYA
57aff75034
Merge pull request #5715 from tk0miya/refactor_writers
...
Refactor writers
2018-12-04 01:57:36 +09:00
Takeshi KOMIYA
b837a5aec0
refactor TexinfoTranslator; Replace _make_visit_admonition()
2018-12-04 01:40:15 +09:00
Takeshi KOMIYA
f5b7d24003
refactor LaTeXTranslator; Replace _make_visit_admonition()
2018-12-04 01:40:14 +09:00
Takeshi KOMIYA
97615beda2
refactor TextTranslator; Replace _make_depart_admonition()
2018-12-04 01:40:14 +09:00
Takeshi KOMIYA
e3ba874640
Merge pull request #5714 from tk0miya/refactor_graphviz
...
refactor figure_wrapper() using state.inline_text()
2018-12-04 01:38:38 +09:00
Takeshi KOMIYA
825426c841
refactor figure_wrapper() using state.inline_text()
2018-12-04 01:14:53 +09:00
Takeshi KOMIYA
22ca4c2eb9
Merge pull request #5713 from tk0miya/fix_typehints_for_cpp_domain
...
Fix typehints for cpp domain
2018-12-04 00:40:43 +09:00
Takeshi KOMIYA
826301dbb1
Fix annotations for cpp domain
2018-12-04 00:27:52 +09:00