-
Notifications
You must be signed in to change notification settings - Fork 1
initial Dimension protocol
#1
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # SCM syntax highlighting | ||
| pixi.lock linguist-language=YAML linguist-generated=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
|
|
||
| # pixi environments | ||
| .pixi | ||
| *.egg-info |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [project] | ||
| authors = [{ name = "quantity-dev contributors" }] | ||
| dependencies = [] | ||
| name = "dimension-api" | ||
| requires-python = ">= 3.12" | ||
| version = "0.0.1.dev0" | ||
|
|
||
| [build-system] | ||
| build-backend = "hatchling.build" | ||
| requires = ["hatchling"] | ||
|
|
||
| [tool.pixi.project] | ||
| channels = ["https://prefix.dev/conda-forge"] | ||
| platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"] | ||
|
|
||
| [tool.pixi.pypi-dependencies] | ||
| dimension_api = { path = ".", editable = true } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| """Dimension API.""" | ||
|
|
||
| from typing import Protocol, Self, runtime_checkable | ||
|
|
||
| __version__ = "0.0.1.dev0" | ||
| __all__ = ["Dimension"] | ||
lucascolley marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| @runtime_checkable | ||
| class Dimension(Protocol): | ||
| def __eq__(self, other: Self, /) -> bool: ... | ||
|
||
| def __mul__(self, other: Self, /) -> Self: ... | ||
| def __div__(self, other: Self, /) -> Self: ... | ||
lucascolley marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| def __pow__(self, other: int, /) -> Self: ... | ||
lucascolley marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.