-
Notifications
You must be signed in to change notification settings - Fork 158
Improve readability when printing type of classes in error messages #887
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
base: rolling
Are you sure you want to change the base?
Changes from 4 commits
1d09c9e
8ed713c
8e9d31a
93a9a94
35002c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -92,7 +92,7 @@ def get_attr( | |||
| """ | ||||
| attr_error = AttributeError( | ||||
| "Attribute '{}' of type '{}' not found in Entity '{}'".format( | ||||
| name, data_type, self.type_name | ||||
| name, data_type.__name__, self.type_name | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's not reflected in the type annotation above, but launch/launch/launch/frontend/entity.py Line 89 in 6854fae
I'll open an issue to fix the type annotation.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
| ) | ||||
| ) | ||||
| if check_is_list_entity(data_type): | ||||
|
|
@@ -125,7 +125,7 @@ def get_attr( | |||
| raise TypeError( | ||||
| "Attribute '{}' of Entity '{}' expected to be of type '{}'." | ||||
| "'{}' can not be converted to one of those types".format( | ||||
| name, self.type_name, data_type, value | ||||
| name, self.type_name, data_type.__name__, value | ||||
| ) | ||||
| ) | ||||
| return value | ||||
Uh oh!
There was an error while loading. Please reload this page.