Skip to content

Commit fc3cddf

Browse files
authored
Merge branch 'master' into dependabot/github_actions/actions/checkout-4.2.1
2 parents 5ae3e28 + 846b8b2 commit fc3cddf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

requirements-linting.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ loguru # There is no separate types module.
1414
flake8-bugbear
1515
pep8-naming
1616
pre-commit # local linting
17+
httpcore

sentry_sdk/integrations/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from typing import Optional
1515
from typing import Set
1616
from typing import Type
17+
from typing import Union
1718

1819

1920
_DEFAULT_FAILED_REQUEST_STATUS_CODES = frozenset(range(500, 600))
@@ -124,7 +125,7 @@ def setup_integrations(
124125
with_auto_enabling_integrations=False,
125126
disabled_integrations=None,
126127
):
127-
# type: (Sequence[Integration], bool, bool, Optional[Sequence[Integration]]) -> Dict[str, Integration]
128+
# type: (Sequence[Integration], bool, bool, Optional[Sequence[Union[type[Integration], Integration]]]) -> Dict[str, Integration]
128129
"""
129130
Given a list of integration instances, this installs them all.
130131

sentry_sdk/integrations/langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _create_span(self, run_id, parent_id, **kwargs):
138138

139139
watched_span = None # type: Optional[WatchedSpan]
140140
if parent_id:
141-
parent_span = self.span_map[parent_id] # type: Optional[WatchedSpan]
141+
parent_span = self.span_map.get(parent_id) # type: Optional[WatchedSpan]
142142
if parent_span:
143143
watched_span = WatchedSpan(parent_span.span.start_child(**kwargs))
144144
parent_span.children.append(watched_span)

0 commit comments

Comments
 (0)