Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shalevr committed Jan 15, 2023
1 parent 0975434 commit 34218a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class SQLAlchemyInstrumentor(BaseInstrumentor):
"""An instrumentor for SQLAlchemy
See `BaseInstrumentor`
"""
engines = []

def instrumentation_dependencies(self) -> Collection[str]:
return _instruments
Expand Down Expand Up @@ -170,7 +171,7 @@ def _instrument(self, **kwargs):
)
)
return self.engines[0]
elif kwargs.get("engines") is not None and isinstance(
if kwargs.get("engines") is not None and isinstance(
kwargs.get("engines"), Sequence
):
self.engines = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
import os
import re

from sqlalchemy.event import (
from sqlalchemy.event import ( # pylint: disable=no-name-in-module
listen,
remove,
) # pylint: disable=no-name-in-module
)

from opentelemetry import trace
from opentelemetry.instrumentation.sqlalchemy.package import (
Expand Down

0 comments on commit 34218a9

Please sign in to comment.