Skip to content

Normalize types module usage in copy module #100815

Description

@sobolevn

Right now there are two minor problems with it:

  1. Here CodeType is assumed to be missing for some reason:
    t = getattr(types, "CodeType", None)
    But here, it is just used as it should be:
    d[types.CodeType] = _deepcopy_atomic
  2. We can also modernize type(None) and etc to use existing types. aliases for clarity

Linked PRs

Activity

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

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions