From 894d5a71967cf6636a10f2480b9dbf42c29fc4c1 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Thu, 25 Jun 2026 21:35:47 +0200 Subject: [PATCH] feat: add dummy classes for typing frames and columns --- midas/typing.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/midas/typing.py b/midas/typing.py index 9c5b407..fc121ce 100644 --- a/midas/typing.py +++ b/midas/typing.py @@ -1,3 +1,4 @@ +from typing import Generic, TypeVar from typing import cast as typing_cast cast = typing_cast @@ -32,3 +33,20 @@ This operation is unsound, use at your own risk! _**Internal Python documentation**_ """ + + +T = TypeVar("T") + + +class Frame(Generic[T]): + """A `Frame` is the abstract type implemented by `DataFrame` + + A frame contains any number of named columns (see :class:`Column`) + """ + + +class Column(Generic[T]): + """A `Column` is the abstract type implemented by `Series` + + A column contains a any number of values of the same type + """