Skip to content

Normalize types module usage in copy module #100815

Closed
@sobolevn

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

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