Skip to content

SyntaxWarning in pretrainedmodels/models/dpn #235

@shaharma93

Description

@shaharma93

I get

 <python_path>site-packages/pretrainedmodels/models/dpn.py:255: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if block_type is 'proj':

I get this warning in the following lines: 255, 258, 262
Is there a reason to use is and not ==? I think comparing strings with == is indeed more elegant..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions