Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Jul 15, 2024
1 parent 5829eee commit b92aab7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions faststream/confluent/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def parse_security(security: Optional[BaseSecurity]) -> "AnyDict":

if security is None:
return {}
elif type(security) == BaseSecurity:
return _parse_base_security(security)
elif type(security) == SASLPlaintext:
elif isinstance(security, SASLPlaintext):
return _parse_sasl_plaintext(security)
elif type(security) == SASLScram256:
elif isinstance(security, SASLScram256):
return _parse_sasl_scram256(security)
elif type(security) == SASLScram512:
elif isinstance(security, SASLScram512):
return _parse_sasl_scram512(security)
elif isinstance(security, BaseSecurity):
return _parse_base_security(security)
else:
raise NotImplementedError(f"KafkaBroker does not support `{type(security)}`.")

Expand Down
10 changes: 5 additions & 5 deletions faststream/kafka/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
def parse_security(security: Optional[BaseSecurity]) -> "AnyDict":
if security is None:
return {}
elif type(security) == BaseSecurity:
return _parse_base_security(security)
elif type(security) == SASLPlaintext:
elif isinstance(security, SASLPlaintext):
return _parse_sasl_plaintext(security)
elif type(security) == SASLScram256:
elif isinstance(security, SASLScram256):
return _parse_sasl_scram256(security)
elif type(security) == SASLScram512:
elif isinstance(security, SASLScram512):
return _parse_sasl_scram512(security)
elif isinstance(security, BaseSecurity):
return _parse_base_security(security)
else:
raise NotImplementedError(f"KafkaBroker does not support `{type(security)}`.")

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ otel = ["opentelemetry-sdk>=1.24.0,<2.0.0"]
optionals = ["faststream[rabbit,kafka,confluent,nats,redis,otel]"]

devdocs = [
"mkdocs-material==9.5.27",
"mkdocs-material==9.5.29",
"mkdocs-static-i18n==1.2.3",
"mdx-include==1.4.2",
"mkdocstrings[python]==0.25.1",
Expand Down Expand Up @@ -111,14 +111,14 @@ types = [

lint = [
"faststream[types]",
"ruff==0.5.1",
"ruff==0.5.2",
"bandit==1.7.9",
"semgrep==1.79.0",
"codespell==2.3.0",
]

test-core = [
"coverage[toml]==7.5.4",
"coverage[toml]==7.6.0",
"pytest==8.2.2",
"pytest-asyncio==0.23.7",
"dirty-equals==0.7.1.post0",
Expand All @@ -127,7 +127,7 @@ test-core = [

testing = [
"faststream[test-core]",
"fastapi==0.111.0",
"fastapi==0.111.1",
"pydantic-settings>=2.0.0,<3.0.0",
"httpx==0.27.0",
"PyYAML==6.0.1",
Expand Down

0 comments on commit b92aab7

Please sign in to comment.