home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 509686432

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/37#issuecomment-509686432 https://api.github.com/repos/simonw/sqlite-utils/issues/37 509686432 MDEyOklzc3VlQ29tbWVudDUwOTY4NjQzMg== 9599 2019-07-09T15:18:49Z 2019-07-09T15:18:49Z OWNER

Interestingly if I run that against my monkeytype branch I get the following errors (subset): _______________________________________________________________________________________ mypy db.py ________________________________________________________________________________________ sqlite_utils/db.py:15: error: No library stub file for module 'numpy' sqlite_utils/db.py:15: note: (Stub files are from https://github.com/python/typeshed) sqlite_utils/db.py:197: error: Incompatible types in assignment (expression has type "Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], Dict[<nothing>, <nothing>]]", variable has type "Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], None]") sqlite_utils/db.py:204: error: Item "None" of "Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], None]" has no attribute "__iter__" (not iterable) sqlite_utils/db.py:206: error: Argument 1 to "set" has incompatible type "Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], None]"; expected "Iterable[str]" sqlite_utils/db.py:211: error: Item "None" of "Optional[Tuple[str, str, str]]" has no attribute "index" sqlite_utils/db.py:211: error: Unsupported right operand type for in ("Optional[Tuple[str, str, str]]") sqlite_utils/db.py:232: error: Unsupported right operand type for in ("Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], None]") sqlite_utils/db.py:234: error: Value of type "Union[Dict[str, int], Dict[str, Union[int, str]], Dict[str, str], None]" is not indexable sqlite_utils/db.py:307: error: Need type annotation for 'table_sql' (hint: "table_sql: Dict[<type>, <type>] = ...") sqlite_utils/db.py:427: error: Item "int" of "Union[int, None, str]" has no attribute "startswith" sqlite_utils/db.py:427: error: Item "None" of "Union[int, None, str]" has no attribute "startswith" sqlite_utils/db.py:434: error: Incompatible types in assignment (expression has type "List[Any]", target has type "int") sqlite_utils/db.py:438: error: Incompatible types in assignment (expression has type "object", target has type "int") sqlite_utils/db.py:670: error: Need type annotation for 'all_column_types' (hint: "all_column_types: Dict[<type>, <type>] = ...") sqlite_utils/db.py:757: error: Incompatible types in assignment (expression has type "List[Any]", variable has type "chain[Any]") sqlite_utils/db.py:761: error: Argument 1 to "create" of "Table" has incompatible type "Dict[str, Union[Type[str], Type[int], Type[bool], Type[time], Type[float]]]"; expected "Dict[str, Union[Type[str], Type[int], Type[bool], Type[time]]]" sqlite_utils/db.py:770: error: Need type annotation for 'all_columns' (hint: "all_columns: Set[<type>] = ...") sqlite_utils/db.py:773: error: Incompatible types in assignment (expression has type "List[Any]", variable has type "Set[Any]") sqlite_utils/db.py:775: error: "Set[Any]" has no attribute "insert" sqlite_utils/db.py:797: error: Need type annotation for 'values' (hint: "values: List[<type>] = ...") sqlite_utils/db.py:811: error: Argument 1 to "add_missing_columns" of "Table" has incompatible type "chain[Any]"; expected "Union[List[Union[Dict[str, Union[int, str]], Dict[str, Union[int, str, List[str]]]]], List[Dict[str, Union[str, int, float]]], List[Dict[str, Union[int, str]]]]"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
465815372  
Powered by Datasette · Queries took 1.048ms · About: github-to-sqlite