erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.68k stars 55 forks source link

fix(pystd): sync some decls in typing module #425

Closed Hanaasagi closed 1 year ago

Hanaasagi commented 1 year ago

Fixes: https://github.com/erg-lang/erg/issues/424

This is a brief description:

https://github.com/python/cpython/blob/376137f6ec73e0800e49cec6100e401f6154b693/Lib/typing.py#L63-L87

    # ABCs (from collections.abc).
    'AbstractSet',  # collections.abc.Set.
    'ByteString',
    'Container',
    'ContextManager',
    'Hashable',
    'ItemsView',
    'Iterable',
    'Iterator',
    'KeysView',
    'Mapping',
    'MappingView',
    'MutableMapping',
    'MutableSequence',
    'MutableSet',
    'Sequence',
    'Sized',
    'ValuesView',
    'Awaitable',
    'AsyncIterator',
    'AsyncIterable',
    'Coroutine',
    'Collection',
    'AsyncGenerator',
    'AsyncContextManager',

There are 24 items, including the Sequence which has already been added. So, I add 23 items.

Changes proposed in this PR:

-

@mtshiba

mtshiba commented 1 year ago

Thanks!