From dfab84add0b97ebb4d39c83bbd14e2e0a9fcac86 Mon Sep 17 00:00:00 2001 From: Troy Raen Date: Sat, 29 Jun 2024 00:06:13 -0700 Subject: [PATCH] messing around with Alert docs and sig --- pittgoogle/alert.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pittgoogle/alert.py b/pittgoogle/alert.py index 2ef2cde..95ebae8 100644 --- a/pittgoogle/alert.py +++ b/pittgoogle/alert.py @@ -49,16 +49,16 @@ class Alert: `Alert` may not be available. See :meth:`pittgoogle.Schemas.names` for a list of options. """ - msg: Optional[ - Union["google.cloud.pubsub_v1.types.PubsubMessage", types_.PubsubMessageLike] - ] = field(default=None) + msg: Union["google.cloud.pubsub_v1.types.PubsubMessage", types_.PubsubMessageLike, None] = ( + field(default=None) + ) """Incoming Pub/Sub message object.""" - _attributes: Optional[Mapping[str, str]] = field(default=None) - _dict: dict | None = field(default=None) - _dataframe: Optional["pd.DataFrame"] = field(default=None) - schema_name: Optional[str] = field(default=None) - _schema: Optional[types_.Schema] = field(default=None, init=False) - path: Optional[Path] = field(default=None) + _attributes: Mapping[str, str] | None = field(default=None) + _dict: Mapping | None = field(default=None) + _dataframe: "pd.DataFrame" | None = field(default=None) + schema_name: str | None = field(default=None) + _schema: types_.Schema | None = field(default=None, init=False) + path: Path | None = field(default=None) # ---- class methods ---- # @classmethod