Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an __all__ variable to control the set of variables exported by lingua. This helps with type checking by Pyright. The alternative would be changing to a form such as: ` from .builder import LanguageDetectorBuilder as LanguageDetectorBuilder ` https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface ``` Imported symbols are considered private by default. If they use the “import A as A” (a redundant module alias), “from X import A as A” (a redundant symbol alias), or “from . import A” forms, symbol “A” is not private unless the name begins with an underscore. If a file __init__.py uses the form “from .A import X”, symbol “A” is not private unless the name begins with an underscore (but “X” is still private). If a wildcard import (of the form “from X import *”) is used, all symbols referenced by the wildcard are not private. ```
- Loading branch information