Skip to content

Commit

Permalink
Improve type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Mar 29, 2024
1 parent 065ec12 commit d5283cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pygmt/datatypes/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"""

import ctypes as ctp
from typing import ClassVar
from collections.abc import Mapping
from typing import Any, ClassVar

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -145,8 +146,8 @@ class _GMT_DATASEGMENT(ctp.Structure): # noqa: N801

def to_dataframe(
self,
column_names: list[str] | None = None,
dtype: type | dict[str, type] | None = None,
column_names: pd.Index[Any] | None = None,
dtype: type | Mapping[Any, type] | None = None,
index_col: str | int | None = None,
) -> pd.DataFrame:
"""
Expand Down

0 comments on commit d5283cd

Please sign in to comment.