Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Handle simple if statements when processing stubs #569

Description

Typeshed's stubs contain many if statements to declare things based on the Python version and the system platform. In order to have the right type info, when analyzing stubs we should handle those checks. They're not complicated, and are usually like:

if sys.version_info >= (3, 6): ...
if sys.platform == 'win32': ...
if sys.version_info >= (3, 3) and sys.platform != 'win32': ...

See:

Seems like it's all sys.version_info and sys.platform.

Activity

  1. MikhailArkhipov commented on Feb 17, 2019

    @MikhailArkhipov

    Actually we do, in ConditionalHandler but only sys.version_info

  2. MikhailArkhipov commented on Feb 18, 2019

    @MikhailArkhipov

    Has to be done for #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions