Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

module.__types__ is a tuple for primitive typedefs #124

@abhinav

Description

@abhinav

For certain primitive typedefs, module.__types__ contains a tuple of types rather than a single class. For example,

In [2]: import thriftrw

In [3]: l = thriftrw.loader.Loader()

In [6]: m = l.loads('x', 'typedef i32 foo')

In [7]: m.__types__
Out[7]: ((int, long, numbers.Integral),)

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