Skip to content

Commit

Permalink
fixup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
troyraen committed Sep 4, 2024
1 parent 9340ffd commit ee5193b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pittgoogle/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@
import base64
import datetime
import importlib.resources
import io
import logging
import random
from pathlib import Path
from typing import TYPE_CHECKING, Any, Mapping, Union

import attrs
import google.cloud.pubsub_v1

from . import registry, types_, exceptions
from . import exceptions, registry, types_
from .schema import Schema # so 'schema' module doesn't clobber 'Alert.schema' attribute

if TYPE_CHECKING:
import astropy.table
import google.cloud.functions_v1
import pandas as pd # always lazy-load pandas. it hogs memory on cloud functions and run

LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -213,7 +217,7 @@ def from_msg(

@classmethod
def from_path(cls, path: str | Path, schema_name: str | None = None) -> "Alert":
"""Creates an `Alert` object from the file at the specified `path`.
"""Create an `Alert` object from the file at the specified `path`.
Args:
path (str or Path):
Expand Down

0 comments on commit ee5193b

Please sign in to comment.