Skip to content

Ensure None checks are precise #166

@davidmrdavid

Description

@davidmrdavid

Some of our checks for None values are of the form:

if <var>:
   # do work

but that can break with bool values or with datatypes that overload the __bool__ method. We should change our None checks to make sure this doesn't break unexpectedly.

Metadata

Metadata

Assignees

Labels

engineeringTo improve the SDK development experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions