Skip to content

Commit

Permalink
Correctly support older python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Apr 9, 2024
1 parent 3bfc6e7 commit 80813d1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,8 @@ def to_plaintext(self) -> str:


class ConnectionInspector(ObjectInspector):
CLASS_QNAME = ["sqlite3.Connection", "sqlalchemy.engine.base.Engine"]
# in older Python versions (eg 3.9) the qualname for sqlite3.Connection is just "Connection"
CLASS_QNAME = ["Connection", "sqlite3.Connection", "sqlalchemy.engine.base.Engine"]

def has_viewer(self) -> bool:
return True
Expand Down

0 comments on commit 80813d1

Please sign in to comment.