ramonhagenaars / jsons

🐍 A Python lib for (de)serializing Python objects to/from JSON
https://jsons.readthedocs.io
MIT License
289 stars 41 forks source link

Document issue: `dumps` should return a string? #174

Open nightan42643 opened 2 years ago

nightan42643 commented 2 years ago
image

Above is a picture of your document, but I think it should return a string, not an object?

def dumps(obj: object,
          jdkwargs: Optional[Dict[str, object]] = None,
          *args,
          **kwargs) -> str:
...
ramonhagenaars commented 2 years ago

You are right, that should be str.