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

Undefined name 'Blog' in type hint #4

Closed
cclauss opened this issue Jul 24, 2021 · 0 comments
Closed

Undefined name 'Blog' in type hint #4

cclauss opened this issue Jul 24, 2021 · 0 comments

Comments

@cclauss
Copy link
Contributor

cclauss commented Jul 24, 2021

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./betterpython/7 - dealing with errors/monadic-error-handling/example.py:22:35: F821 undefined name 'Blog'
def fetch_blog(blog_id) -> Result['Blog', Exception]:
                                  ^
./betterpython/7 - dealing with errors/monadic-error-handling/example.py:41:27: F821 undefined name 'Blog'
def blog_to_dict(item) -> 'Blog':
                          ^
./betterpython/7 - dealing with errors/monadic-error-handling/example.py:52:28: F821 undefined name 'Blog'
def verify_access(blog) -> 'Blog':
                           ^
3     F821 undefined name 'Blog'
3
@cclauss cclauss closed this as completed Jul 26, 2021
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