Skip to content

Commit

Permalink
use up035 where formatter is enforcing use of collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
babebe committed Dec 5, 2024
1 parent 62fba8d commit 8c29c62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions analytics/src/analytics/integrations/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

import functools
import logging
from collections.abc import Callable
from dataclasses import dataclass
from typing import Any
from typing import Any, Callable

from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
Expand Down
2 changes: 1 addition & 1 deletion analytics/src/analytics/logs/decodelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import datetime
import json
from collections.abc import Mapping
from typing import Mapping # noqa: UP035

RED = "\033[31m"
GREEN = "\033[32m"
Expand Down
3 changes: 1 addition & 2 deletions analytics/src/analytics/logs/ecs_background_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import os
import time
import uuid
from collections.abc import Callable, Generator
from functools import wraps
from typing import ParamSpec, TypeVar
from typing import Callable, Generator, ParamSpec, TypeVar # noqa: UP035

import requests

Expand Down
3 changes: 1 addition & 2 deletions analytics/src/analytics/logs/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

import json
import logging
from collections.abc import Callable
from datetime import date, datetime, timezone
from decimal import Decimal
from enum import Enum
from typing import Any, TypeVar
from typing import Any, Callable, TypeVar
from uuid import UUID

from analytics.logs import decodelog
Expand Down

0 comments on commit 8c29c62

Please sign in to comment.