Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 334 Bytes

isinstance-second-argument-not-valid-type.md

File metadata and controls

19 lines (12 loc) · 334 Bytes

Pattern: 2nd argument of isinstance is not a type

Issue: -

Description

Emitted when the second argument of an isinstance call is not a type.

Example of incorrect code:

isinstance({a:1}, hash) # [isinstance-second-argument-not-valid-type]

Example of correct code:

isinstance(-999, int)