Skip to content

python 3.8버전 이상에서 MutableMapping 경로 변경 #2

Description

@jhj9109

python 3.8버전 이상에서 MutableMapping의 경로가 collections 에서 collections.abc로 수정되었습니다.
아래와 같이 버전을 체크하여 경로를 수정하는 코드가 필요해 보입니다.

import sys
    if sys.version_info[:2] >= (3, 8):
        from collections.abc import MutableMapping as DictMixin
    else:
        from collections import MutableMapping as DictMixin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions