Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings should announce their annotations #89

Open
ziima opened this issue Apr 22, 2020 · 0 comments
Open

Settings should announce their annotations #89

ziima opened this issue Apr 22, 2020 · 0 comments

Comments

@ziima
Copy link
Collaborator

ziima commented Apr 22, 2020

Using a settings in an annotated code may cause mypy to complain about their API

from appsettings import AppSettings, ListSetting

class FooSettings(AppSettings):
    a_list = ListSetting()

# mypy complains: error: Value of type "ListSetting" is not indexable
FooSettings.a_list[0]
ziima added a commit that referenced this issue May 28, 2020
ziima added a commit that referenced this issue May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant