Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usages of the types module #16597

Merged
merged 1 commit into from
Apr 24, 2017
Merged

Conversation

xmo-odoo
Copy link
Collaborator

Only used in yaml import

Most of the type aliases in the types modules are remnants from when
the corresponding builtins were just conversion functions and not
proper types (before type and class unification).

Python 3 removes them, and thus `types` essentially can't be used in
P3, it now only contains "interpreter" types which can't trivially be
obtained elsewhere (e.g. GeneratorType, CodeType, TracebackType) and
tooling to dynamically create new types (added in 3.3).

Convert a bunch of types usages in yaml_import to use the
corresponding builtin types.

fixers:
    lib2to3.fixes.fix_types

issue odoo#8530
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 24, 2017
@xmo-odoo xmo-odoo merged commit 9570292 into odoo:master Apr 24, 2017
@xmo-odoo xmo-odoo deleted the master-p3-types-xmo branch April 24, 2017 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants