Skip to content

Commit c95b3c3

Browse files
committed
add a missing import statement
Add the import inside the function rather than at the top of the file because otherwise it would introduce a circular dependency.
1 parent 7e4e1a3 commit c95b3c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab/objects.py

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
class jsonEncoder(json.JSONEncoder):
3333
def default(self, obj):
34+
from gitlab import Gitlab
3435
if isinstance(obj, GitlabObject):
3536
return obj.__dict__
3637
elif isinstance(obj, Gitlab):

0 commit comments

Comments
 (0)