Skip to content

Commit

Permalink
fix unneded type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodonato committed Jan 15, 2024
1 parent 7b35f18 commit d32b7a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prometheus_aioexporter/_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,8 @@ def _setup_logging(self, log_level: str) -> None:
def _configure_registry(self, include_process_stats: bool = False) -> None:
"""Configure the MetricRegistry."""
if include_process_stats:
# XXX ignore type until
# https://github.com/prometheus/client_python/pull/970 is fixed
self.registry.register_additional_collector(
ProcessCollector(registry=None) # type: ignore[arg-type]
ProcessCollector(registry=None)
)

def _get_ssl_context(
Expand Down

0 comments on commit d32b7a8

Please sign in to comment.