Skip to content

Commit

Permalink
Merge pull request #2518 from xtekky/newww
Browse files Browse the repository at this point in the history
Fix missing NoneType in old python versions
  • Loading branch information
hlohaus authored Dec 30, 2024
2 parents 75fe95c + 66c6abd commit 9a5c337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion g4f/providers/base_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from abc import abstractmethod
from inspect import signature, Parameter
from typing import Optional, _GenericAlias
from types import NoneType
try:
from types import NoneType
except ImportError:
NoneType = type(None)

from ..typing import CreateResult, AsyncResult, Messages
from .types import BaseProvider
Expand Down

0 comments on commit 9a5c337

Please sign in to comment.