defer numpy, bs4 and jsonschema

This commit is contained in:
Paul Gauthier 2024-07-03 13:35:33 -03:00
parent 2dc6735ab4
commit ed35af44b3
3 changed files with 9 additions and 25 deletions

View file

@ -13,7 +13,6 @@ from json.decoder import JSONDecodeError
from pathlib import Path
import git
from jsonschema import Draft7Validator
from rich.console import Console, Text
from rich.markdown import Markdown
@ -346,6 +345,8 @@ class Coder:
# validate the functions jsonschema
if self.functions:
from jsonschema import Draft7Validator
for function in self.functions:
Draft7Validator.check_schema(function)