chore: move currency demo in subfolder

This commit is contained in:
2026-07-09 23:20:49 +02:00
parent baed978a1d
commit ec4fbe594c
3 changed files with 0 additions and 14 deletions

View File

@@ -1,14 +0,0 @@
from __future__ import annotations
from typing import Generic, TypeVar
class Currency(float): ...
_T0 = TypeVar("_T0", bound=Currency, covariant=True)
class Price(Currency, Generic[_T0]):
def __add__(self, _0: Price[_T0], /) -> Price[_T0]: ...
class EUR(Currency): ...
class USD(Currency): ...
class CHF(Currency): ...
class Discount(float): ...