diff --git a/dont-merge/send-traces.py b/dont-merge/send-traces.py index ad2a04632..8a885bf11 100644 --- a/dont-merge/send-traces.py +++ b/dont-merge/send-traces.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """FIXME dummy docstring.""" + from __future__ import annotations import logging @@ -52,5 +53,5 @@ def main(): if __name__ == '__main__': - logging.basicConfig(level="INFO") + logging.basicConfig(level='INFO') main() diff --git a/ops/tracing/__init__.py b/ops/tracing/__init__.py index 34feabb88..c94d0274c 100644 --- a/ops/tracing/__init__.py +++ b/ops/tracing/__init__.py @@ -16,6 +16,7 @@ If OTEL guts are installed, real implementation. If OTEL deps are missing, ProxyTracer pointing to NoOpTracer, doing nothing. """ + from __future__ import annotations import logging diff --git a/ops/tracing/_fixme.py b/ops/tracing/_fixme.py index 33037f3e6..fbbb29b93 100644 --- a/ops/tracing/_fixme.py +++ b/ops/tracing/_fixme.py @@ -10,6 +10,7 @@ # ANY KIND, either express or implied. See the License for the specific language # governing permissions and limitations under the License. """FIXME Docstring.""" + from __future__ import annotations import functools @@ -609,7 +610,7 @@ def _get_tracer() -> Optional[Tracer]: logger.warning( 'Tracer not found in `tracer` context var. ' "Verify that you're importing all `charm_tracing` symbols " - "from the same module path. \n" + 'from the same module path. \n' 'For example, DO' ': `from charms.lib...charm_tracing import foo, bar`. \n' 'DONT: \n' @@ -1115,10 +1116,11 @@ def trace_function(function: _F, name: Optional[str] = None) -> _F: return _trace_callable(function, 'function', name=name) -def _trace_callable(callable: _F, # noqa: A002 # FIXME callable is a builtin - qualifier: str, - name: Optional[str] = None, - ) -> _F: +def _trace_callable( + callable: _F, # noqa: A002 # FIXME callable is a builtin + qualifier: str, + name: Optional[str] = None, +) -> _F: dev_logger.debug(f'instrumenting {callable}') # sig = inspect.signature(callable)