Profile

Cover photo
guy barash
Attended מקווה ישראל
Lives in ראשון לציון
5 followers|37,048 views
AboutPostsPhotosYouTubeReviews

Stream

guy barash

Discussion  - 
 
hey, how do i force the source assistant?

let's say i have a method the accept v as a parameter, 
the IDE doesn't know it,but i know that v MUST be an integer(for example), for the sake of autocompletion , how do i tell the IDE that v is an integer? (or any other class).
thanks
1
Stephan Deibel's profile photo
 
Right now it's with "isinstance(x, sometype)" or optionally with assert:  "assert isinstance(x, sometype)".  We're working on also adding support for PEP 0484  type hints but that's not available yet.
Add a comment...
Education
  • מקווה ישראל
Basic Information
Gender
Male
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
ראשון לציון
Links
YouTube
חויה שלילית מאוד. כל הזמן עצר אותנו ונזף בנו. העיר שאנחנו "קבוצה שמעוררת אנטיגוניזם" והתייחס אלינו בצורה מאוד לא נעימה. לא מומלץ.
Public - a year ago
reviewed a year ago
1 review
Map
Map
Map