Skip to content

from __future__ import division is returning int instead of float in python 2 #2048

Closed
@euresti

Description

@euresti

I noticed this when mypy --py2 worked but mypy for python 3 failed.

from __future__ import division
x = 2 / 3
reveal_type(x)  # This returns int

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions