Skip to content

Commit

Permalink
Merge pull request #236 from astronomy-commons/sandro/fix-base-catalo…
Browse files Browse the repository at this point in the history
…g-info-types

Fix base catalog info types
  • Loading branch information
camposandro authored Mar 12, 2024
2 parents 2cf6d1c + 594e7d2 commit ece81e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hipscat/catalog/dataset/base_catalog_info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import dataclasses
from dataclasses import dataclass
from typing import Any, Dict, Union
Expand All @@ -13,8 +15,8 @@ class BaseCatalogInfo:
"""Container class for catalog metadata"""

catalog_name: str = ""
catalog_type: CatalogType = None
total_rows: int = None
catalog_type: CatalogType | None = None
total_rows: int | None = None

DEFAULT_TYPE = None
"""The default catalog type for this catalog info type. To be overridden by subclasses.
Expand Down

0 comments on commit ece81e4

Please sign in to comment.