mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '4.x' into 5.x
This commit is contained in:
commit
3de45b3a6a
2
setup.py
2
setup.py
@ -41,7 +41,7 @@ extras_require = {
|
||||
'lint': [
|
||||
'flake8>=3.5.0',
|
||||
'isort',
|
||||
'mypy>=0.931',
|
||||
'mypy>=0.950',
|
||||
'docutils-stubs',
|
||||
"types-typed-ast",
|
||||
"types-requests",
|
||||
|
@ -1426,7 +1426,7 @@ def builtin_resolver(app: Sphinx, env: BuildEnvironment,
|
||||
if s.startswith('typing.'):
|
||||
s = s.split('.', 1)[1]
|
||||
|
||||
return s in typing.__all__ # type: ignore
|
||||
return s in typing.__all__
|
||||
|
||||
if node.get('refdomain') != 'py':
|
||||
return None
|
||||
|
@ -59,19 +59,19 @@ class _TranslationProxy(UserString):
|
||||
def __add__(self, other: str) -> str: # type: ignore
|
||||
return self.data + other
|
||||
|
||||
def __radd__(self, other: str) -> str:
|
||||
def __radd__(self, other: str) -> str: # type: ignore
|
||||
return other + self.data
|
||||
|
||||
def __mod__(self, other: str) -> str: # type: ignore
|
||||
return self.data % other
|
||||
|
||||
def __rmod__(self, other: str) -> str:
|
||||
def __rmod__(self, other: str) -> str: # type: ignore
|
||||
return other % self.data
|
||||
|
||||
def __mul__(self, other: Any) -> str: # type: ignore
|
||||
return self.data * other
|
||||
|
||||
def __rmul__(self, other: Any) -> str:
|
||||
def __rmul__(self, other: Any) -> str: # type: ignore
|
||||
return other * self.data
|
||||
|
||||
def __getattr__(self, name: str) -> Any:
|
||||
|
Loading…
Reference in New Issue
Block a user