chatgraph 0.3.15__tar.gz → 0.3.16__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.

Potentially problematic release.


This version of chatgraph might be problematic. Click here for more details.

Files changed (23) hide show
  1. {chatgraph-0.3.15 → chatgraph-0.3.16}/PKG-INFO +1 -1
  2. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/types/route.py +3 -3
  3. {chatgraph-0.3.15 → chatgraph-0.3.16}/pyproject.toml +1 -1
  4. {chatgraph-0.3.15 → chatgraph-0.3.16}/LICENSE +0 -0
  5. {chatgraph-0.3.15 → chatgraph-0.3.16}/README.md +0 -0
  6. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/__init__.py +0 -0
  7. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/auth/credentials.py +0 -0
  8. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/bot/chatbot_model.py +0 -0
  9. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/bot/chatbot_router.py +0 -0
  10. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/cli/__init__.py +0 -0
  11. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/error/chatbot_error.py +0 -0
  12. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/error/route_error.py +0 -0
  13. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/gRPC/gRPCCall.py +0 -0
  14. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/messages/message_consumer.py +0 -0
  15. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/userstate.proto +0 -0
  16. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/userstate_pb2.py +0 -0
  17. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/userstate_pb2_grpc.py +0 -0
  18. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/voll.proto +0 -0
  19. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/voll_pb2.py +0 -0
  20. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/pb/voll_pb2_grpc.py +0 -0
  21. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/types/end_types.py +0 -0
  22. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/types/message_types.py +0 -0
  23. {chatgraph-0.3.15 → chatgraph-0.3.16}/chatgraph/types/request_types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chatgraph
3
- Version: 0.3.15
3
+ Version: 0.3.16
4
4
  Summary: A user-friendly chatbot library
5
5
  Home-page: https://github.com/irissonnlima/chatgraph
6
6
  License: MIT
@@ -24,13 +24,13 @@ class Route:
24
24
  self.separator = separator
25
25
 
26
26
  @property
27
- def previous(self)->str:
27
+ def previous(self)->'Route':
28
28
  """
29
29
  Retorna a rota anterior a atual do usuário
30
30
  """
31
31
  return self.get_previous()
32
32
 
33
- def get_previous(self) -> str:
33
+ def get_previous(self) -> 'Route':
34
34
  """
35
35
  Retorna o caminho anterior ao caminho atual.
36
36
 
@@ -44,7 +44,7 @@ class Route:
44
44
  raise RouteError('Não há caminho anterior ao start')
45
45
 
46
46
  previous_route = self.separator.join(self.current.split(self.separator)[:-1])
47
- return previous_route
47
+ return Route(previous_route, self.routes, self.separator)
48
48
 
49
49
  def get_next(self, next_part: str) -> 'Route':
50
50
  """
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "chatgraph"
3
- version = "0.3.15"
3
+ version = "0.3.16"
4
4
  description = "A user-friendly chatbot library"
5
5
  authors = ["Irisson N. Lima <irisson.lima@verdecard.com.br>"]
6
6
  readme = "README.md"
File without changes
File without changes