GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve type hints · GenericMappingTools/pygmt@d5283cd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pygmt/datatypes
    • dataset.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pygmt/datatypes/dataset.py‎

Copy file name to clipboardExpand all lines: pygmt/datatypes/dataset.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"""
44

55
import ctypes as ctp
6-
from typing import ClassVar
6+
from collections.abc import Mapping
7+
from typing import Any, ClassVar
78

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

146147
def to_dataframe(
147148
self,
148-
column_names: list[str] | None = None,
149-
dtype: type | dict[str, type] | None = None,
149+
column_names: pd.Index[Any] | None = None,
150+
dtype: type | Mapping[Any, type] | None = None,
150151
index_col: str | int | None = None,
151152
) -> pd.DataFrame:
152153
"""

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.