-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 0.2.0 #10
Release 0.2.0 #10
Commits on Jan 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 98941d7 - Browse repository at this point
Copy the full SHA 98941d7View commit details
Commits on Feb 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 013f0bb - Browse repository at this point
Copy the full SHA 013f0bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for af60768 - Browse repository at this point
Copy the full SHA af60768View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04dd16a - Browse repository at this point
Copy the full SHA 04dd16aView commit details -
This change declares the type of `p` to accept either the list of mapping return type.
Configuration menu - View commit details
-
Copy full SHA for cbdf1c9 - Browse repository at this point
Copy the full SHA cbdf1c9View commit details -
Use a different var instead of reassigning
odds
.Means we don't lose the information about whether the param `odds` is a mapping or other collection, and therefore we don't need to early capture `keys`. Also, `_class` was unused, so removed, however we probably can support returning the same type of mapping as the user inputs.
Configuration menu - View commit details
-
Copy full SHA for 8439e38 - Browse repository at this point
Copy the full SHA 8439e38View commit details -
This allows us to use the nicer union syntax, `A | B`.
Configuration menu - View commit details
-
Copy full SHA for 79b22ec - Browse repository at this point
Copy the full SHA 79b22ecView commit details -
Use
Sequence
instead ofCollection
.Sequences have specific order, important as the output list is ordered the same as the input sequence.
Configuration menu - View commit details
-
Copy full SHA for e8a72af - Browse repository at this point
Copy the full SHA e8a72afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d588fe - Browse repository at this point
Copy the full SHA 2d588feView commit details -
BREAKING: kw onlyh args and overloads for `calculate_implied_probabil…
…ities` Makes all arguments other than `odds` kw only, this drastically reduces the number of required overloads to type the signature properly. ```py # still works calculate_implied_probabilities([2.0, 2.0]) calculate_implied_probabilities(odds=[2.0, 2.0]) calculate_implied_probabilities([2.0, 2.0], full_output=True) ## also any other combination of passing arguments as keyword args remains the same # patterns of passing any arg other than `odds` as positional breaks calculate_implied_probabilibies([2.0, 2.0], 1000) calculate_impolied_probabilities([2.0, 2.0], 1000, 1e-12, True) ``` This encourages clarity at the callsite and also helps from a library perspective as it is easier to add new kw only args to an api without breaking downstream. Adds overloads and tests for combination of input types and value of `full_output` flag.
Configuration menu - View commit details
-
Copy full SHA for 06a4ce9 - Browse repository at this point
Copy the full SHA 06a4ce9View commit details -
Makes mapping input/output generic on key type.
Allows the key type of returned dict to match the input key type. Previously, and input of `{"home": 2.0, "away": 2.0}` would return type `dict[Any, float]`. This change allows that to return `dict[str, float]`.
Configuration menu - View commit details
-
Copy full SHA for 11526d7 - Browse repository at this point
Copy the full SHA 11526d7View commit details -
BREAKING: generic object return for
full_ouput=True
Instead of returning a dict that loses the type of the implied probabilities, we can return an object that is generic on the implied probability return type. This means that as far as mypy is concerned, the following two are equivalent: ```py calculate_implied_probabilities([2.0, 2.0]) calculate_implied_probabilities([2.0, 2.0], full_output=True).implied_probabilities ```
Configuration menu - View commit details
-
Copy full SHA for 467d889 - Browse repository at this point
Copy the full SHA 467d889View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9fbb39 - Browse repository at this point
Copy the full SHA a9fbb39View commit details -
Configuration menu - View commit details
-
Copy full SHA for a490aa0 - Browse repository at this point
Copy the full SHA a490aa0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3be047a - Browse repository at this point
Copy the full SHA 3be047aView commit details -
Configures mypy to run on tests as well as library code. Refactors tests to deal with type errors caused by reused variable names inside the mono-test.
Configuration menu - View commit details
-
Copy full SHA for 494041e - Browse repository at this point
Copy the full SHA 494041eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20f8963 - Browse repository at this point
Copy the full SHA 20f8963View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9b6e42 - Browse repository at this point
Copy the full SHA c9b6e42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 720a658 - Browse repository at this point
Copy the full SHA 720a658View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a26618 - Browse repository at this point
Copy the full SHA 8a26618View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c524f0 - Browse repository at this point
Copy the full SHA 3c524f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for af63742 - Browse repository at this point
Copy the full SHA af63742View commit details
Commits on Apr 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b58db9c - Browse repository at this point
Copy the full SHA b58db9cView commit details -
Bump black from 23.10.1 to 24.3.0
Bumps [black](https://github.com/psf/black) from 23.10.1 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.10.1...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e14d42 - Browse repository at this point
Copy the full SHA 2e14d42View commit details -
Configuration menu - View commit details
-
Copy full SHA for dab48ba - Browse repository at this point
Copy the full SHA dab48baView commit details -
Configuration menu - View commit details
-
Copy full SHA for f774234 - Browse repository at this point
Copy the full SHA f774234View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18df610 - Browse repository at this point
Copy the full SHA 18df610View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10749ee - Browse repository at this point
Copy the full SHA 10749eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4deedd9 - Browse repository at this point
Copy the full SHA 4deedd9View commit details