From 57c5143aac5b7887e8bc091c549abab490e2d7cb Mon Sep 17 00:00:00 2001 From: rany2 Date: Thu, 5 Jan 2023 01:13:33 +0200 Subject: [PATCH] complete typing for now --- mypy.ini | 23 ++++++++++++++++++----- src/edge_tts/__init__.py | 2 ++ 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/mypy.ini b/mypy.ini index 9e84878..01e108d 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,16 +1,29 @@ [mypy] -warn_return_any = True -warn_unused_configs = True - disallow_any_unimported = True -#disallow_any_expr = True +disallow_any_expr = False disallow_any_decorated = True -#disallow_any_explicit = True +disallow_any_explicit = False disallow_any_generics = True disallow_subclassing_any = True + disallow_untyped_calls = True disallow_untyped_defs = True disallow_incomplete_defs = True +check_untyped_defs = True +disallow_untyped_decorators = True + +implicit_optional = False +strict_optional = True + +warn_redundant_casts = True +warn_unused_ignores = True +warn_no_return = True +warn_return_any = True +warn_unreachable = True + +strict_concatenate = True +strict_equality = True +strict = True [mypy-edge_tts.list_voices] disallow_any_decorated = False diff --git a/src/edge_tts/__init__.py b/src/edge_tts/__init__.py index 342ae5e..8ea0ee7 100644 --- a/src/edge_tts/__init__.py +++ b/src/edge_tts/__init__.py @@ -5,3 +5,5 @@ __init__ for edge_tts from .communicate import Communicate from .list_voices import VoicesManager, list_voices from .submaker import SubMaker + +__all__ = ["Communicate", "VoicesManager", "list_voices", "SubMaker"]