python type annotation for rare objects

后端 未结 0 1247
遥遥无期
遥遥无期 2020-12-01 02:18

I know about builtintypes. But how I can specify a rare objects, db connection object for example?

def get_connection_and_cursor() -> tuple[psycopg2.extens         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题