-
Notifications
You must be signed in to change notification settings - Fork 624
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
Protect access to Span implementation #1188
Protect access to Span implementation #1188
Conversation
099c76a
to
5c065ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice I like this approach!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggested change based on @owais's comment. Otherwise this change looks good
beac2a3
to
c33530f
Compare
Description
Span
now throws aTypeError
in the constructor, and all instances of Span must now be instantiated by_Span
constructor. The was implemented by overriding the__new__
constructor in theSpan
class.Fixes #1000
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist: