toolslm 0.3.23__tar.gz → 0.3.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolslm
3
- Version: 0.3.23
3
+ Version: 0.3.24
4
4
  Summary: Tools to make language models a bit easier to use
5
5
  Home-page: https://github.com/AnswerDotAI/toolslm
6
6
  Author: Jeremy Howard
@@ -1,7 +1,7 @@
1
1
  [DEFAULT]
2
2
  repo = toolslm
3
3
  lib_name = toolslm
4
- version = 0.3.23
4
+ version = 0.3.24
5
5
  min_python = 3.9
6
6
  license = apache2
7
7
  black_formatting = False
@@ -0,0 +1 @@
1
+ __version__ = "0.3.24"
@@ -70,7 +70,7 @@ def _handle_type(t, defs):
70
70
  def _is_container(t):
71
71
  "Check if type is a container (list, dict, tuple, set, Union)"
72
72
  origin = get_origin(t)
73
- return origin in (list, dict, tuple, set, Union) if origin else False
73
+ return origin in (list, dict, tuple, set, Union, UnionType) if origin else False
74
74
 
75
75
  def _is_parameterized(t):
76
76
  "Check if type has arguments (e.g. list[int] vs list, dict[str, int] vs dict)"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolslm
3
- Version: 0.3.23
3
+ Version: 0.3.24
4
4
  Summary: Tools to make language models a bit easier to use
5
5
  Home-page: https://github.com/AnswerDotAI/toolslm
6
6
  Author: Jeremy Howard
@@ -1 +0,0 @@
1
- __version__ = "0.3.23"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes