mkdocstrings / griffe

Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
https://mkdocstrings.github.io/griffe
ISC License
267 stars 38 forks source link

API checks: Improve reporting for attribute who lost their value #218

Open pawamoy opened 8 months ago

pawamoy commented 8 months ago

Describe the bug For example, going from:

class A:
    b: int | None = None

to

class A:
    b: int

will report

src/package/module.py:2: A.b: Attribute value was changed: None -> None

I think it should say "unset" instead of None?