netbox-community / pynetbox

Python API client library for Netbox.
Apache License 2.0
543 stars 167 forks source link

replace None with 'null' in query parameters #545

Open doc-sheet opened 1 year ago

doc-sheet commented 1 year ago

Requests skips parameters that are None. Map 'null' string to None python type for a more native coding

eg: nb.dcim.interfaces.filter(mac_address__n=None)

doc-sheet commented 10 months ago

Sure. Done.

abhi1693 commented 10 months ago

@doc-sheet Looks like the linter is failing. Please update this and let me know once its ready to review.

doc-sheet commented 10 months ago

@abhi1693 I removed line breaks. And monkeypatch as well.