sim-tools 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sim-tools
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Simulation Tools for Education and Practice
5
5
  Project-URL: Homepage, https://github.com/TomMonks/sim-tools
6
6
  Project-URL: Bug Tracker, https://github.com/TomMonks/sim-tools/issues
@@ -1,4 +1,5 @@
1
1
  """sim-tools"""
2
- __version__ = '1.0.0'
2
+
3
+ __version__ = "1.0.2"
3
4
 
4
5
  from . import datasets, distributions, time_dependent, ovs, output_analysis
@@ -99,6 +99,7 @@ from typing import (
99
99
  List,
100
100
  Dict,
101
101
  runtime_checkable,
102
+ TypeVar,
102
103
  )
103
104
 
104
105
  import numpy as np
@@ -121,6 +122,8 @@ from sim_tools._validation import (
121
122
  is_positive_array,
122
123
  )
123
124
 
125
+ T = TypeVar("T", bound=type)
126
+
124
127
 
125
128
  # pylint: disable=too-few-public-methods
126
129
  @runtime_checkable
@@ -297,7 +300,7 @@ class DistributionRegistry:
297
300
  Decorator function that registers the class
298
301
  """
299
302
 
300
- def decorator(distribution_class: Distribution):
303
+ def decorator(distribution_class: T) -> T:
301
304
  nonlocal name
302
305
  if name is None:
303
306
  name = distribution_class.__name__
File without changes
File without changes
File without changes
File without changes
File without changes