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

Callable error #1

Open
briefausde opened this issue Apr 30, 2018 · 1 comment
Open

Callable error #1

briefausde opened this issue Apr 30, 2018 · 1 comment

Comments

@briefausde
Copy link
Owner

In the get_current_weather() function, in some cases, the method condition can be a callable.

get_future_weather() has the same problem.

@briefausde
Copy link
Owner Author

weather.lookup_by_location(city).condition # condition is not callable
weather.lookup_by_location(city).condition() # condition is callable

weather.lookup_by_location(city).forecast[0:5] # forecast is not callable
weather.lookup_by_location(city).forecast()[0:5] # forecast is callable

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