robotpy / robotpy/mostrobotpy

mypy strict doesn't like make_wpistruct

Open
#103 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
27
Forks
29
Avg merge
4d 6h
Merged PRs (30d)
12

Description

I think the default None for the cls argument is the issue. What does it mean for cls to be None?

https://github.com/robotpy/mostrobotpy/blob/a614f97d5eb790ddab2a9e7815dfe2179ac8b1ee/subprojects/robotpy-wpiutil/wpiutil/wpistruct/dataclass.py#L42

```
Type of "make_wpistruct" is partially unknown
Type of "make_wpistruct" is "(cls: Unknown | None = None, /, *, name: str | None = None) -> (((cls: Unknown) -> Unknown) | Unknown)"Pylance[reportUnknownMemberType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnknownMemberType)
Untyped class decorator obscures type of class; ignoring decoratorPylance[reportUntypedClassDecorator](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUntypedClassDecorator)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.