Skip to content

Commit

Permalink
fix optimized_route=route
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsnolde committed Apr 15, 2023
1 parent 14e1a9d commit 88d0fb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## Unreleased

_Valhalla version 3.3.0_

## [3.1.1](https://pypi.org/project/pyvalhalla/3.1.1/) - 2023-04-16

_Valhalla version 3.3.0_

### FIXED

- `Actor.optimized_route` called Valhalla's `_Actor.route`

## [3.1.0](https://pypi.org/project/pyvalhalla/3.1.0/) - 2023-04-13

_Valhalla version 3.3.0_
Expand Down
6 changes: 1 addition & 5 deletions valhalla/actor.py
Expand Up @@ -81,7 +81,7 @@ def route(self, req: Union[str, dict]):

@dict_or_str
def optimized_route(self, req: Union[str, dict]):
return super().route(req)
return super().optimized_route(req)

@dict_or_str
def locate(self, req: Union[str, dict]):
Expand All @@ -107,10 +107,6 @@ def trace_attributes(self, req: Union[str, dict]):
def height(self, req: Union[str, dict]):
return super().height(req)

@dict_or_str
def transit_available(self, req: Union[str, dict]):
return super().transit_available(req)

@dict_or_str
def expansion(self, req: Union[str, dict]):
return super().expansion(req)
Expand Down

0 comments on commit 88d0fb6

Please sign in to comment.