Skip to content

Commit

Permalink
Add missing ClassVar hints
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed May 22, 2021
1 parent 80e158b commit 94a9387
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions jaxlie/_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import abc
from typing import Generic, Type, TypeVar, overload
from typing import ClassVar, Generic, Type, TypeVar, overload

import jax
import numpy as onp
Expand All @@ -18,16 +18,16 @@ class MatrixLieGroup(abc.ABC, EnforceOverrides):
# Class properties
# > These will be set in `_utils.register_lie_group()`

matrix_dim: int
matrix_dim: ClassVar[int]
"""Dimension of square matrix output from `.as_matrix()`."""

parameters_dim: int
parameters_dim: ClassVar[int]
"""Dimension of underlying parameters, `.parameters()`."""

tangent_dim: int
tangent_dim: ClassVar[int]
"""Dimension of tangent space."""

space_dim: int
space_dim: ClassVar[int]
"""Dimension of coordinates that can be transformed."""

def __init__(self, parameters: hints.Vector):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="jaxlie",
version="1.2.3",
version="1.2.4",
description="Matrix Lie groups in Jax",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 94a9387

Please sign in to comment.