Skip to content

Commit

Permalink
Again try to update Sphinx on RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jul 13, 2021
1 parent 4c0c292 commit 3770f25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 1
python:
version: 3.8
version: 3.9
install:
- requirements: docs/requirements.txt
- method: setuptools
Expand Down
11 changes: 0 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys
import os
import typing

# Do not resolve these.
autodoc_type_aliases = {
Expand All @@ -11,16 +10,6 @@
"IntoSquareSet": "chess.IntoSquareSet",
}

# Hack to not resolve autodoc_type_aliases before Sphinx 3.3.
# See https://github.com/sphinx-doc/sphinx/issues/6518.
_get_type_hints = typing.get_type_hints
def get_type_hints(obj, globalns=None, localns=None):
if localns is None:
localns = {}
localns.update(autodoc_type_aliases)
return _get_type_hints(obj, globalns, localns)
typing.get_type_hints = get_type_hints

# Import the chess module.
sys.path.insert(0, os.path.abspath(".."))
import chess
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sphinx==3.2.1
Sphinx==4.1.0

0 comments on commit 3770f25

Please sign in to comment.