fixes documentation generation
Browse files- .readthedocs.yml +2 -0
- docs/requirements.txt +1 -0
- pytube/monostate.py +1 -5
.readthedocs.yml
CHANGED
@@ -15,3 +15,5 @@ formats: all
|
|
15 |
# Optionally set the version of Python and requirements required to build your docs
|
16 |
python:
|
17 |
version: 3.7
|
|
|
|
|
|
15 |
# Optionally set the version of Python and requirements required to build your docs
|
16 |
python:
|
17 |
version: 3.7
|
18 |
+
install:
|
19 |
+
- requirements: docs/requirements.txt
|
docs/requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
typing_extensions
|
pytube/monostate.py
CHANGED
@@ -1,10 +1,6 @@
|
|
1 |
import io
|
2 |
from typing import Any, Optional
|
3 |
-
|
4 |
-
try:
|
5 |
-
from typing import Protocol
|
6 |
-
except ImportError:
|
7 |
-
from typing_extensions import Protocol
|
8 |
|
9 |
# from __future__ import annotations
|
10 |
|
|
|
1 |
import io
|
2 |
from typing import Any, Optional
|
3 |
+
from typing_extensions import Protocol
|
|
|
|
|
|
|
|
|
4 |
|
5 |
# from __future__ import annotations
|
6 |
|