Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request focuses on updating type annotations to use the new built-in generic types introduced in Python 3.9, such as
list
andset
, instead of the olderList
andSet
from thetyping
module. The most important changes include updates to type annotations in various functions and methods across multiple files.Type Annotation Updates:
libs/infinity_emb/infinity_emb/engine.py
capabilities
property and various methods to useset
andlist
instead ofSet
andList
. [1] [2] [3] [4]libs/infinity_emb/infinity_emb/fastapi_schemas/data_uri.py
dict
andtuple
instead ofDict
andTuple
. [1] [2] [3]libs/infinity_emb/infinity_emb/inference/batch_handler.py
capabilities
property and various methods to useset
andlist
instead ofSet
andList
. [1] [2] [3] [4] [5]libs/infinity_emb/infinity_emb/infinity_server.py
list
instead ofList
. [1] [2]libs/infinity_emb/infinity_emb/sync_engine.py
List
import and updated type annotations in methods to uselist
instead ofList
. [1] [2]libs/infinity_emb/infinity_emb/transformer/abstract.py
capabilities
property to useset
instead ofSet
. [1] [2]libs/infinity_emb/infinity_emb/transformer/vision/utils.py
list
instead ofList
. [1] [2]