Skip to content

Commit

Permalink
Fixed Datetime type hinting (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog authored Apr 22, 2024
1 parent 31edd1e commit 2e5f712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Brewtils Changelog
==================

3.25.1
------
TBD
- Fixed Typehinting parsing for `datetime.datetime` types

3.25.0
------
4/5/2024
Expand Down
2 changes: 1 addition & 1 deletion brewtils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def _parameter_type_hint(method, cmd_parameter):
return "Boolean"
if type_hint_class in ["<class 'object'>", "<class 'dict'>"]:
return "Dictionary"
if type_hint_class.lower() in ["<class 'datetime'>"]:
if type_hint_class.lower() in ["<class 'datetime.datetime'>"]:
return "DateTime"
if type_hint_class in ["<class 'bytes'>"]:
return "Bytes"
Expand Down

0 comments on commit 2e5f712

Please sign in to comment.