Skip to content

Commit dd14ac2

Browse files
authored
feat: Increase version range to include 3.9 (#10)
* Increase version range to include 3.9 * Fix ruff errors
1 parent 75d24b7 commit dd14ac2

File tree

6 files changed

+374
-395
lines changed

6 files changed

+374
-395
lines changed

.github/workflows/test-application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ['3.10', '3.11']
17+
python-version: ['3.9', '3.10', '3.11']
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Set up Python ${{ matrix.python-version }}

openai_function_calling/helper_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Helper functions used throughout the package."""
22

3+
from __future__ import annotations
4+
35
from openai_function_calling.json_schema_type import JsonSchemaType
46

57

openai_function_calling/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def merge(self, other_parameter: Parameter) -> None:
130130
if self.array_item_type is None or self.array_item_type == JsonSchemaType.NULL:
131131
self.array_item_type = other_parameter.array_item_type
132132

133-
def __eq__(self, other: Any) -> bool:
133+
def __eq__(self, other: object) -> bool:
134134
"""Test if an object is equivalent to the parameter.
135135
136136
Args:

0 commit comments

Comments
 (0)