Skip to content

known issues in micropython-stdlib v1.24.1 #791

Open
9 of 9 issues completed
Open
9 of 9 issues completed
@Josverl

Description

@Josverl

stdlib

The micropython-stdlib-stubs have a customised version of the typeshed stdlib stubs.
while this does provide a lot of functionality, it there are a few remaining issues that need to be resolved.
As currently only pyright can work with

QA test code fragment type check error
feat_bluetooth\check_examples\ble_uart_repl.py:46: os.dupterm_notify(None) # stubs-ignore: linter=="pyright" -
feat_stdlib\check_collections\check_ordereddict.py:14: [("z", 1), ("a", 2)] # stubs-ignore: linter in ["pyright"] error: Argument of type "list[tuple[str, int]]" cannot be assigned to parameter "map" of type "Mapping[_KT@OrderedDict, _VT@OrderedDict]" in function "init"
feat_stdlib_only\check_ssl.py:48: return (ssl.wrap_socket(client, cert=cert, key=key, **self.kwargs), #type: ignore # stubs-ignore: port == "stdlib" -
feat_stdlib_only\check_collections\check_ordereddict.py:5: d = OrderedDict([("z", 1), ("a", 2)]) # stubs-ignore: linter == "pyright" -
feat_stdlib_only\check_sys\check_sys.py:31: previous = sys.atexit(byebye) # stubs-ignore: linter == "mypy" error: Module has no attribute "atexit"; maybe "exit"? [attr-defined]
feat_asyncio\check_demo\aiorepl.py:67: return await exec_task # type: ignore # pyright/mypy doesn't like the await here
feat_asyncio\check_demo\aiorepl.py:197: sys.stdout.write(b) # type: ignore # TODO write(bytes) not supported by stubs
feat_asyncio\check_demo\auart_hd.py:17: from primitives.delay_ms import Delay_ms # type: ignore

Sub-issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmypyTypecheck issue reported by mypystdlibmicropython version of stdlib

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions