Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 805c1f7

Browse files
authored
Bump mypy to 0.982 (open-telemetry#3776)
1 parent 8ed71b1 commit 805c1f7

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Fix python 3.12 deprecation warning
1111
([#3751](https://github.com/open-telemetry/opentelemetry-python/pull/3751))
12+
- bump mypy to 0.982
13+
([#3776](https://github.com/open-telemetry/opentelemetry-python/pull/3776))
1214

1315
## Version 1.23.0/0.44b0 (2024-02-23)
1416

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ flake8==6.1.0
33
isort==5.12.0
44
black==22.3.0
55
httpretty==1.1.4
6-
mypy==0.931
6+
mypy==0.982
77
sphinx==7.1.2
88
sphinx-rtd-theme==2.0.0rc4
99
sphinx-autodoc-typehints==1.25.2

opentelemetry-api/src/opentelemetry/context/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _load_runtime_context(func: _F) -> _F:
3939
"""
4040

4141
@wraps(func) # type: ignore[misc]
42-
def wrapper( # type: ignore[misc]
42+
def wrapper(
4343
*args: typing.Tuple[typing.Any, typing.Any],
4444
**kwargs: typing.Dict[typing.Any, typing.Any],
4545
) -> typing.Optional[typing.Any]:

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def start_span(self, *args, **kwargs) -> Span: # type: ignore
432432
return self._tracer.start_span(*args, **kwargs) # type: ignore
433433

434434
@contextmanager # type: ignore
435-
def start_as_current_span(self, *args, **kwargs) -> Iterator[Span]: # type: ignore
435+
def start_as_current_span(self, *args, **kwargs) -> Iterator[Span]:
436436
with self._tracer.start_as_current_span(*args, **kwargs) as span: # type: ignore
437437
yield span
438438

0 commit comments

Comments
 (0)