Skip to content

Instantly share code, notes, and snippets.

@io7m
Created March 2, 2022 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save io7m/01359c331e519a381353392029746a80 to your computer and use it in GitHub Desktop.
Save io7m/01359c331e519a381353392029746a80 to your computer and use it in GitHub Desktop.
api/sip/dialect.py:21: error: Incompatible types in assignment (expression has type "bool", base class "Dialect" defined the type as "None")
api/sip/dialect.py:25: error: Incompatible types in assignment (expression has type "bool", base class "Dialect" defined the type as "None")
api/saml/metadata/model.py:6: error: Module "json.decoder" has no attribute "WHITESPACE"
api/saml/metadata/model.py:9: error: Skipping analyzing "onelogin.saml2.constants": module is installed, but missing library stubs or py.typed marker
api/saml/metadata/model.py:845: error: Incompatible return value type (got "str", expected "SAMLNameIDFormat")
api/saml/metadata/model.py:1074: error: Subclass of "timedelta" and "int" cannot exist: would have incompatible method signatures
api/saml/metadata/model.py:1075: error: Statement is unreachable
api/saml/metadata/model.py:1139: error: Incompatible types in assignment (expression has type "Optional[SAMLNameID]", variable has type "SAMLNameID")
api/saml/metadata/parser.py:5: error: Skipping analyzing "onelogin.saml2.auth": module is installed, but missing library stubs or py.typed marker
api/saml/metadata/parser.py:6: error: Skipping analyzing "onelogin.saml2.constants": module is installed, but missing library stubs or py.typed marker
api/saml/metadata/parser.py:7: error: Skipping analyzing "onelogin.saml2.utils": module is installed, but missing library stubs or py.typed marker
api/saml/metadata/parser.py:8: error: Skipping analyzing "onelogin.saml2.xmlparser": module is installed, but missing library stubs or py.typed marker
api/saml/metadata/parser.py:492: error: Not all arguments converted during string formatting
api/local_analytics_exporter.py:3: error: Skipping analyzing "unicodecsv": module is installed, but missing library stubs or py.typed marker
api/admin/google_oauth_admin_authentication_provider.py:5: error: Skipping analyzing "oauth2client": module is installed, but missing library stubs or py.typed marker
api/admin/google_oauth_admin_authentication_provider.py:8: error: Module "core.model" has no attribute "Session"
api/util/xray.py:4: error: Skipping analyzing "aws_xray_sdk.core": module is installed, but missing library stubs or py.typed marker
api/util/xray.py:6: error: Skipping analyzing "aws_xray_sdk.core.models.segment": module is installed, but missing library stubs or py.typed marker
api/util/xray.py:7: error: Skipping analyzing "aws_xray_sdk.ext.flask.middleware": module is installed, but missing library stubs or py.typed marker
api/util/xray.py:8: error: Skipping analyzing "aws_xray_sdk.ext.httplib": module is installed, but missing library stubs or py.typed marker
api/util/xray.py:24: error: Item "None" of "Optional[Any]" has no attribute "put_annotation"
api/util/xray.py:29: error: Item "None" of "Optional[Any]" has no attribute "put_annotation"
api/util/xray.py:32: error: Item "None" of "Optional[Any]" has no attribute "put_annotation"
api/util/xray.py:78: error: "Request" has no attribute "library"
api/util/xray.py:79: error: "Request" has no attribute "library"
api/util/xray.py:85: error: "Request" has no attribute "patron"
api/util/xray.py:87: error: "Request" has no attribute "patron"
api/util/xray.py:89: error: "Request" has no attribute "patron"
api/novelist.py:21: error: Module "core.model" has no attribute "Session"
api/saml/credential.py:63: error: Incompatible types in assignment (expression has type "None", variable has type "SAMLNameID")
api/saml/credential.py:77: error: Argument 1 to "loads" has incompatible type "Optional[str]"; expected "Union[str, bytes]"
core/model/formats.py:85: error: Argument 1 to "_content_type_priority" of "FormatPriorities" has incompatible type "Optional[str]"; expected "str"
api/util/profilers.py:23: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
api/util/profilers.py:45: error: Skipping analyzing "pyinstrument": module is installed, but missing library stubs or py.typed marker
api/util/profilers.py:86: error: Cannot assign to a method
api/util/profilers.py:99: error: Skipping analyzing "aws_xray_sdk.core": module is installed, but missing library stubs or py.typed marker
api/annotations.py:4: error: Skipping analyzing "pyld": module is installed, but missing library stubs or py.typed marker
core/importers.py:1: error: Cannot find implementation or library stub for module named "core.configuration.ignored_identifier"
core/importers.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
core/opds_import.py:1971: error: Incompatible types in "yield" (actual type "ConfigurationGrouping", expected type "OPDSImporterConfiguration")
api/coverage.py:19: error: Incompatible types in assignment (expression has type "List[int]", base class "OPDSImporter" defined the type as "None")
api/coverage.py:28: error: Incompatible types in assignment (expression has type "List[int]", base class "OPDSImporter" defined the type as "None")
api/google_analytics_provider.py:8: error: Module "core.model" has no attribute "Session"
api/custom_index.py:35: error: Need type annotation for "BY_PROTOCOL" (hint: "BY_PROTOCOL: Dict[<type>, <type>] = ...")
api/lanes.py:13: error: Module "core.model" has no attribute "Session"
api/lanes.py:1031: error: Incompatible types in assignment (expression has type "str", base class "WorkBasedLane" defined the type as "None")
api/lanes.py:1032: error: Incompatible types in assignment (expression has type "str", base class "WorkBasedLane" defined the type as "None")
api/lanes.py:1037: error: Incompatible types in assignment (expression has type "str", base class "WorkList" defined the type as "None")
api/lanes.py:1124: error: Incompatible types in assignment (expression has type "str", base class "WorkList" defined the type as "None")
api/lanes.py:1185: error: Incompatible types in assignment (expression has type "str", base class "WorkList" defined the type as "None")
api/lanes.py:1250: error: Incompatible types in assignment (expression has type "str", base class "WorkList" defined the type as "None")
api/lanes.py:1251: error: Incompatible types in assignment (expression has type "str", base class "WorkBasedLane" defined the type as "None")
api/lanes.py:1252: error: Incompatible types in assignment (expression has type "str", base class "WorkBasedLane" defined the type as "None")
core/opds2_import.py:21: error: Cannot find implementation or library stub for module named "core.configuration.ignored_identifier"
core/opds2_import.py:92: error: Incompatible types in assignment (expression has type "StringIO", variable has type "BytesIO")
core/opds2_import.py:184: error: "Collection[Any]" has no attribute "external_integration"
core/opds2_import.py:205: error: Name "core_ast" is not defined
core/opds2_import.py:206: error: Name "SubjectMetadata" is not defined
core/opds2_import.py:251: error: Name "core_ast" is not defined
core/opds2_import.py:369: error: Incompatible return value type (got "Optional[LinkData]", expected "LinkData")
core/opds2_import.py:372: error: Name "ast_core" is not defined
core/opds2_import.py:432: error: Name "ast_core" is not defined
core/opds2_import.py:467: error: Name "ast_core" is not defined
core/opds2_import.py:520: error: Name "ast_core" is not defined
core/opds2_import.py:600: error: Argument 2 to "_extract_medium" of "OPDS2Importer" has incompatible type "Optional[str]"; expected "str"
core/opds2_import.py:661: error: Need type annotation for "measurements" (hint: "measurements: List[<type>] = ...")
core/opds2_import.py:717: error: Name "ast_core" is not defined
core/opds2_import.py:754: error: The return type of a generator function should be "Generator" or one of its supertypes
core/opds2_import.py:794: error: Name "ast_core" is not defined
core/opds2_import.py:879: error: Signature of "extract_next_links" incompatible with supertype "OPDSImporter"
core/opds2_import.py:879: note: Superclass:
core/opds2_import.py:879: note: @classmethod
core/opds2_import.py:879: note: def extract_next_links(self, feed: Any) -> Any
core/opds2_import.py:879: note: Subclass:
core/opds2_import.py:879: note: def extract_next_links(self, feed: Union[str, Any]) -> List[str]
core/opds2_import.py:928: error: Need type annotation for "failures" (hint: "failures: Dict[<type>, <type>] = ...")
api/custom_patron_catalog.py:28: error: Need type annotation for "BY_PROTOCOL" (hint: "BY_PROTOCOL: Dict[<type>, <type>] = ...")
api/circulation_exceptions.py:168: error: Incompatible types in assignment (expression has type "ProblemDetail", base class "LimitReached" defined the type as "None")
api/circulation_exceptions.py:170: error: Incompatible types in assignment (expression has type "str", base class "LimitReached" defined the type as "None")
api/circulation_exceptions.py:182: error: Incompatible types in assignment (expression has type "ProblemDetail", base class "LimitReached" defined the type as "None")
api/circulation_exceptions.py:184: error: Incompatible types in assignment (expression has type "str", base class "LimitReached" defined the type as "None")
api/nyt.py:39: error: Module has no attribute "tz"
api/metadata_wrangler.py:14: error: Module "core.model" has no attribute "Session"
api/adobe_vendor_id.py:722: error: "Type[ExternalIntegration]" has no attribute "libraries"
api/saml/configuration/model.py:7: error: Skipping analyzing "onelogin.saml2.settings": module is installed, but missing library stubs or py.typed marker
api/saml/configuration/model.py:25: error: Module has no attribute "escape"
api/saml/configuration/model.py:127: error: Module has no attribute "escape"
api/saml/auth.py:6: error: Skipping analyzing "onelogin.saml2.auth": module is installed, but missing library stubs or py.typed marker
api/saml/auth.py:7: error: Skipping analyzing "onelogin.saml2.errors": module is installed, but missing library stubs or py.typed marker
api/circulation.py:17: error: Module "core.model" has no attribute "Session"
api/circulation.py:458: error: Need type annotation for "SETTINGS" (hint: "SETTINGS: List[<type>] = ...")
api/circulation.py:462: error: Need type annotation for "LIBRARY_SETTINGS" (hint: "LIBRARY_SETTINGS: List[<type>] = ...")
api/circulation.py:485: error: Need type annotation for "delivery_mechanism_to_internal_format" (hint: "delivery_mechanism_to_internal_format: Dict[<type>, <type>] = ...")
api/circulation.py:714: error: Incompatible types in assignment (expression has type "Union[Dict[int, Type[CirculationFulfillmentPostProcessor]], Dict[str, Type[CirculationFulfillmentPostProcessor]]]", variable has type "Optional[Dict[int, Type[CirculationFulfillmentPostProcessor]]]")
api/circulation.py:732: error: "Library" has no attribute "collections"; maybe "all_collections"?
api/circulation.py:736: error: Too many arguments for "BaseCirculationAPI"
api/circulation.py:748: error: Unsupported right operand type for in ("Optional[Dict[int, Type[CirculationFulfillmentPostProcessor]]]")
api/circulation.py:749: error: Value of type "Optional[Dict[int, Type[CirculationFulfillmentPostProcessor]]]" is not indexable
api/circulation.py:749: error: Too many arguments for "CirculationFulfillmentPostProcessor"
api/testing.py:116: error: Incompatible types in assignment (expression has type "str", variable has type "date")
api/opds.py:21: error: Module "core.model" has no attribute "Session"
api/opds.py:189: error: Syntax error in type annotation
api/opds.py:189: note: Suggestion: Use Tuple[T1, ..., Tn] instead of (T1, ..., Tn)
api/opds_for_distributors.py:8: error: Module "core.model" has no attribute "Session"
api/odl.py:17: error: Skipping analyzing "uritemplate": module is installed, but missing library stubs or py.typed marker
api/odl.py:28: error: Module "core.model" has no attribute "Session"
api/odl.py:589: error: "Loan" has no attribute "license_pool"; maybe "license_pool_id"?
api/odl.py:1047: error: Argument "content_types" to "LicenseData" has incompatible type "Optional[List[str]]"; expected "Optional[str]"
api/proquest/importer.py:308: error: Not all arguments converted during string formatting
api/admin/opds.py:8: error: Module "core.model" has no attribute "Session"
api/authenticator.py:30: error: Module "core.model" has no attribute "Session"
api/authenticator.py:267: error: Name "fines" already defined on line 263
api/authenticator.py:544: error: Need type annotation for "library_authenticators" (hint: "library_authenticators: Dict[<type>, <type>] = ...")
api/authenticator.py:1317: error: Need type annotation for "SETTINGS" (hint: "SETTINGS: List[<type>] = ...")
api/authenticator.py:1757: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/authenticator.py:2457: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/authenticator.py:2636: error: Name "remote_patron_lookup" already defined on line 2538
api/authenticator.py:2819: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/authenticator.py:2821: error: Incompatible types in assignment (expression has type "SAMLSettings", base class "AuthenticationProvider" defined the type as "List[Any]")
api/authenticator.py:2823: error: Need type annotation for "LIBRARY_SETTINGS" (hint: "LIBRARY_SETTINGS: List[<type>] = ...")
api/saml/provider.py:20: error: Module "core.model" has no attribute "Session"
api/firstbook2.py:28: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/firstbook2.py:40: error: Incompatible types in assignment (expression has type "str", base class "BasicAuthenticationProvider" defined the type as "Pattern[str]")
api/firstbook2.py:41: error: Incompatible types in assignment (expression has type "str", base class "BasicAuthenticationProvider" defined the type as "None")
api/firstbook.py:26: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/firstbook.py:35: error: Incompatible types in assignment (expression has type "str", base class "BasicAuthenticationProvider" defined the type as "Pattern[str]")
api/firstbook.py:36: error: Incompatible types in assignment (expression has type "str", base class "BasicAuthenticationProvider" defined the type as "None")
api/clever/__init__.py:90: error: Incompatible types in assignment (expression has type "str", base class "AuthenticationProvider" defined the type as "None")
api/clever/__init__.py:108: error: Need type annotation for "LIBRARY_SETTINGS" (hint: "LIBRARY_SETTINGS: List[<type>] = ...")
api/controller.py:47: error: Module "core.model" has no attribute "Session"
api/selftest.py:63: error: "Library" has no attribute "__iter__" (not iterable)
api/lcp/controller.py:9: error: Module "core.model" has no attribute "Session"
api/registration/registry.py:7: error: Skipping analyzing "html_sanitizer": module is installed, but missing library stubs or py.typed marker
api/enki.py:19: error: Module "core.model" has no attribute "Session"
api/enki.py:157: error: All conditional function variants must have identical signatures
api/bibliotheca.py:32: error: Module "core.model" has no attribute "Session"
api/bibliotheca.py:106: error: Incompatible types in assignment (expression has type "None", base class "BaseCirculationAPI" defined the type as "str")
api/bibliotheca.py:119: error: Need type annotation for "internal_format_to_delivery_mechanism" (hint: "internal_format_to_delivery_mechanism: Dict[<type>, <type>] = ...")
api/bibliotheca.py:119: error: Argument 1 to "dict" has incompatible type "Generator[List[Sequence[Optional[str]]], None, None]"; expected "Iterable[Tuple[<nothing>, <nothing>]]"
api/bibliotheca.py:669: error: Need type annotation for "NAMESPACES" (hint: "NAMESPACES: Dict[<type>, <type>] = ...")
api/bibliotheca.py:1127: error: Incompatible types in assignment (expression has type "str", base class "DateResponseParser" defined the type as "None")
api/bibliotheca.py:1128: error: Incompatible types in assignment (expression has type "str", base class "DateResponseParser" defined the type as "None")
api/bibliotheca.py:1135: error: Incompatible types in assignment (expression has type "str", base class "DateResponseParser" defined the type as "None")
api/bibliotheca.py:1136: error: Incompatible types in assignment (expression has type "str", base class "DateResponseParser" defined the type as "None")
api/axis.py:11: error: Library stubs not installed for "certifi" (or incompatible with Python 3.9)
api/axis.py:11: note: Hint: "python3 -m pip install types-certifi"
api/axis.py:11: note: (or run "mypy --install-types" to install all missing stub packages)
api/axis.py:28: error: Module "core.model" has no attribute "Session"
api/admin/geographic_validator.py:8: error: Skipping analyzing "uszipcode": module is installed, but missing library stubs or py.typed marker
api/admin/geographic_validator.py:10: error: Skipping analyzing "pypostalcode": module is installed, but missing library stubs or py.typed marker
api/admin/controller/library_settings.py:8: error: Skipping analyzing "wcag_contrast_ratio": module is installed, but missing library stubs or py.typed marker
api/admin/controller/library_settings.py:385: error: Module "PIL.Image" is not valid as a type
api/admin/controller/library_settings.py:393: error: Image? has no attribute "save"
api/admin/controller/cdn_services.py:6: error: Module "core.model" has no attribute "Configuration"; maybe "ConfigurationSetting"?
api/app.py:58: error: Name "routes" already defined (by an import)
api/routes.py:8: error: Skipping analyzing "flask_cors.core": module is installed, but missing library stubs or py.typed marker
Found 147 errors in 49 files (checked 162 source files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment