Skip to content

Upgrading 4.3.2 -> 4.4.1 causes mypy type checking to fail #2186

@rakunoi

Description

@rakunoi

Hi,

to keep it short, when upgraded 4.3.2 -> 4.4.1, mypy started throwing following errors

Skipping analyzing "troposphere": module is installed, but missing library stubs
or py.typed marker  [import]
    from troposphere import Ref
    ^
Skipping analyzing "troposphere.ecs": module is installed, but missing library
stubs or py.typed marker  [import]
    from troposphere.ecs import Environment as EnvironmentVariable
    ^
Skipping analyzing "troposphere": module is installed, but missing library stubs
or py.typed marker  [import]
    from troposphere import (
    ^
Skipping analyzing "troposphere.applicationautoscaling": module is installed,
but missing library stubs or py.typed marker  [import]
    from troposphere.applicationautoscaling import (
    ^

Skipping analyzing "troposphere.cloudwatch": module is installed, but missing
library stubs or py.typed marker  [import]
    from troposphere.cloudwatch import Alarm, MetricDimension
    ^

Skipping analyzing "troposphere.ec2": module is installed, but missing library
stubs or py.typed marker  [import]
    from troposphere.ec2 import SecurityGroup, SecurityGroupEgress, Securi...
    ^

Skipping analyzing "troposphere.ecs": module is installed, but missing library
stubs or py.typed marker  [import]
    from troposphere.ecs import (
    ^

Skipping analyzing "troposphere.efs": module is installed, but missing library
stubs or py.typed marker  [import]
    from troposphere.efs import (
    ^

Skipping analyzing "troposphere.elasticloadbalancingv2": module is installed,
but missing library stubs or py.typed marker  [import]
    from troposphere.elasticloadbalancingv2 import (
    ^

mypy config is

[tool.mypy]
python_version = "3.11"
strict = true
pretty = true
show_error_codes = true
warn_unused_ignores = false
plugins = ["pydantic.mypy"]

Pydantic version is "==1.10.12"
Mypy version is mypy = "1.5.1"

Please let me know if more information is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions