File tree 4 files changed +5
-5
lines changed
ext/opentelemetry-ext-flask/src/opentelemetry/ext/flask
src/opentelemetry/patcher
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,6 @@ def __init__(self):
114
114
def patch (self ):
115
115
flask .Flask = _PatchedFlask
116
116
117
- patch .var = 99
118
-
119
117
def unpatch (self ):
120
118
flask .Flask = self ._original_flask
121
119
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+ # type: ignore
14
15
15
16
from abc import ABC , abstractmethod
16
17
from functools import wraps
@@ -23,7 +24,7 @@ class BasePatcher(ABC):
23
24
"""An ABC for patchers"""
24
25
25
26
@staticmethod
26
- def protect (class_ ) -> None : # type: ignore[no-untyped-def]
27
+ def protect (class_ ) -> None :
27
28
"""
28
29
Provides a class decorator that protects patch and unpatch methods
29
30
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- from opentelemetry .patcher .base_patcher import BasePatcher
15
+ from opentelemetry .patcher .base_patcher import BasePatcher # type: ignore
16
16
17
17
18
- class NoOpPatcher (BasePatcher ):
18
+ class NoOpPatcher (BasePatcher ): # type: ignore
19
19
def patch (self ) -> None :
20
20
"""Patch"""
21
21
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
+ # type: ignore
14
15
15
16
from unittest import TestCase
16
17
You can’t perform that action at this time.
0 commit comments