django-pghistory icon indicating copy to clipboard operation
django-pghistory copied to clipboard

Correct type hint of def track(obj_field=)

Open SebastianDix opened this issue 10 months ago • 0 comments

When I upgraded pghistory, PyCharm showed me a type error that None is not expected, when it actually is one of the allowed types. I can surpress this inspection for the entire class, but that is overkill. A correct type hint would be preferable, since None is a valid value and necessary for M2M table add/remove tracking.

SebastianDix avatar Apr 05 '24 14:04 SebastianDix