Skip to content

Python3.6 generated code has "typing" import which may not work on all 3.6 microversions #1728

Description

@pghole

The python3.6 quicktype generated code has following import
from typing import Optional, List, Any, TypeVar, Callable, Type, cast

As per the documentation https://docs.python.org/3.6/library/typing.html , this library has been "provisional basis". The backport of this on Pypi https://pypi.org/project/typing/ states For example, typing in Python 3.6.0 is missing the definition of ‘Type’ – upgrading to 3.6.2 will fix this.

Since quicktype is using 'Type' and may be some more similar which may not work on all versions of 3.6. Hence, this makes the code incompatible with all python3.6 versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions