Skip to content

Commit 2c88d5c

Browse files
authored
Merge pull request #486 from Jer-Pha/bugfix/ISSUE-483
[Fixes #483] Add __all__ to __init__.py to support mypy --strict usage
2 parents 11306c2 + d948c98 commit 2c88d5c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

youtube_transcript_api/__init__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,30 @@
2727
YouTubeDataUnparsable,
2828
PoTokenRequired,
2929
)
30+
31+
__all__ = [
32+
"YouTubeTranscriptApi",
33+
"TranscriptList",
34+
"Transcript",
35+
"FetchedTranscript",
36+
"FetchedTranscriptSnippet",
37+
"YouTubeTranscriptApiException",
38+
"CookieError",
39+
"CookiePathInvalid",
40+
"CookieInvalid",
41+
"TranscriptsDisabled",
42+
"NoTranscriptFound",
43+
"CouldNotRetrieveTranscript",
44+
"VideoUnavailable",
45+
"VideoUnplayable",
46+
"IpBlocked",
47+
"RequestBlocked",
48+
"NotTranslatable",
49+
"TranslationLanguageNotAvailable",
50+
"FailedToCreateConsentCookie",
51+
"YouTubeRequestFailed",
52+
"InvalidVideoId",
53+
"AgeRestricted",
54+
"YouTubeDataUnparsable",
55+
"PoTokenRequired",
56+
]

0 commit comments

Comments
 (0)