Skip to content

Commit

Permalink
Replace type comparison with isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Jul 27, 2024
1 parent 322133f commit 7c080a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def _deprecated_changed(self, change):

@validate('image_pull_secrets')
def _validate_image_pull_secrets(self, proposal):
if type(proposal['value']) == str:
if isinstance(proposal['value'], str):
warnings.warn(
"""Passing KubeSpawner.image_pull_secrets string values is
deprecated since KubeSpawner 0.14.0. The recommended
Expand Down

0 comments on commit 7c080a6

Please sign in to comment.