From 5e8fde5ef60f909731c605dbd8d1b98de3fea647 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Fri, 16 Jul 2021 10:43:58 +0200
Subject: [PATCH] fixed #2

---
 minijson.pyx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/minijson.pyx b/minijson.pyx
index 156d2c6..b223996 100644
--- a/minijson.pyx
+++ b/minijson.pyx
@@ -581,12 +581,13 @@ cpdef bytes dumps_object(object data, default: tp.Optional[tp.Callable] = None):
 cpdef object loads_object(data, object obj_class):
     """
     Load a dict from a bytestream, unserialize it and use it as a kwargs to instantiate
-    an object of given class
+    an object of given class.
 
     :param data: data to unserialized 
     :param obj_class: class to instantiate
     :return: instance of obj_class
     :raises DecodingError: decoding error
+    :raises TypeError: invalid class has been passed (the argument's don't match)
     """
     cdef dict kwargs
     try:
-- 
GitLab