Skip to content

Commit

Permalink
Convert usages of attr to (attrs) the new-style API in chalice.py
Browse files Browse the repository at this point in the history
  • Loading branch information
achave11-ucsc committed Jun 3, 2024
1 parent 34fb7fc commit 0b7c3c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/azul/chalice.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
unquote,
)

import attr
import attrs
import chalice
from chalice import (
Chalice,
Expand Down Expand Up @@ -100,10 +100,10 @@ def aws_name(self) -> str:
return self.name.capitalize()


@attr.s(auto_attribs=True, frozen=True, kw_only=True)
@attrs.frozen(kw_only=True)
class MetricThreshold:
lambda_name: str
handler_name: Optional[str] = attr.ib(default=None)
handler_name: Optional[str] = attrs.field(default=None)
metric: LambdaMetric
value: int

Expand Down Expand Up @@ -534,7 +534,7 @@ def metric_alarms(self) -> list[MetricThreshold]:
return thresholds


@attr.s(auto_attribs=True, frozen=True, kw_only=True)
@attrs.frozen(kw_only=True)
class AppController:
app: AzulChaliceApp

Expand Down

0 comments on commit 0b7c3c4

Please sign in to comment.