Enable all pyupgrade checks in ruff

This will help to keep us from using deprecated Python features going
forward.

Signed-off-by: Tristan Partin <tristan@neon.tech>
This commit is contained in:
Tristan Partin
2024-10-08 14:32:26 -05:00
committed by GitHub
parent 618680c299
commit 5bd8e2363a
203 changed files with 1075 additions and 564 deletions

View File

@@ -1,10 +1,12 @@
from __future__ import annotations
import sys
from pathlib import Path
import numpy as np
import pandas as pd
import numpy as np # type: ignore [import]
import pandas as pd # type: ignore [import]
import psycopg2
from pgvector.psycopg2 import register_vector
from pgvector.psycopg2 import register_vector # type: ignore [import]
from psycopg2.extras import execute_values