equinor / equinor/completor

Improve typehints for dictionary

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Look into replacing the TypeAlias with TypedDict since it's more descriptive.
There are possibly some issues connected to this, and it might be solved better another way.

e.g.
```python
from typing import TypedDict

class WellData(TypedDict, total=False):
WELSPECS: pd.DataFrame
COMPDAT: pd.DataFrame
WELSEGS: tuple[pd.DataFrame, pd.DataFrame]
COMPSEGS: pd.DataFrame
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.