You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This inspection detects type errors in function call expressions. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Types of function parameters can be specified in docstrings or in Python 3 function annotations.
for cat, cat_data in cats.items():
# c = add_cat(cat)
c = add_cat(cat, cat_data["views"], cat_data["likes"])
for p in cat_data["pages"]:
add_page(c, p["title"], p["url"], p["views"])
The text was updated successfully, but these errors were encountered:
That bit of code looks fine, I think the problem lies in your cats dictionary.
If you haven't solved this one yet, could you paste that bit of code here?
I suspect you enclosed the cat items with square brackets instead of curly ones.
Hi, how fix it?
Expected 'collections.Iterable', got 'Union[List[Dict[str, Union[str, int]]], int]' instead less...
This inspection detects type errors in function call expressions. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Types of function parameters can be specified in docstrings or in Python 3 function annotations.
The text was updated successfully, but these errors were encountered: