revert orjson.pyi obj parameter (#4046)

After submitting a pull request to orjson repository, the author has changed the library and "obj" parameter is now positional only.
Not this behavior is aligned with the stub file and the change can be reverted.

https://github.com/ijl/orjson/releases/tag/3.0.1
This commit is contained in:
Gal Ben David
2020-05-20 19:11:39 +03:00
committed by GitHub
parent 092fdb2ca5
commit d11da2c5d1

View File

@@ -3,7 +3,7 @@ from typing import Any, Callable, Optional, Union
__version__ = str
def dumps(
obj: Any,
__obj: Any,
default: Optional[Callable[[Any], Any]] = ...,
option: Optional[int] = ...,
) -> bytes: ...