Luodian / Otter

🦦 Otter, a multi-modal model based on OpenFlamingo (open-sourced version of DeepMind's Flamingo), trained on MIMIC-IT and showcasing improved instruction-following and in-context learning ability.
https://otter-ntu.github.io/
MIT License
3.54k stars 242 forks source link

Wrong type hint #282

Closed SCZwangxiao closed 10 months ago

SCZwangxiao commented 10 months ago

Type hints in all code should be modified as the following:

from typing import List, Dict
list -> List
dict -> Dict
Luodian commented 10 months ago

hi thanks for this issue, but you may find that if you use python3.9, it works with list, dict.

https://docs.python.org/3/whatsnew/3.9.html#type-hinting-generics-in-standard-collections