Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7401433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:27:59+00:00 2026-05-29T04:27:59+00:00

I recently picked up PyCharm and I’m used to a feature from Wing where

  • 0

I recently picked up PyCharm and I’m used to a feature from Wing where you can tell the IDE what class a particular identifier (variable, attribute, whatever) will be. For example:

my_object = SomeClass()
assert isinstance(my_object.my_attribute, SomeOtherClass)

At this point, Wing knows exactly what my_object.my_attribute is even if it couldn’t otherwise figure it out from source code analysis.

I’m looking for a similar feature in PyCharm. I know what a particular attribute of an object is, but PyCharm doesn’t, so how can I tell it, so it can give me handy completions?

Related question: I also do see a similar question, How can I tell PyCharm what type a parameter is expected to be?, but it doesn’t cover attributes, just parameters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:28:02+00:00Added an answer on May 29, 2026 at 4:28 am

    Actually PyCharm also understands the ‘assert isinstance’ syntax, but only for unqualified references. I’ve filed an issue to support this for qualified references as well:

    http://youtrack.jetbrains.net/issue/PY-5614

    In the current version, you can specify the type of my_attribute by going to the declaration of SomeClass and adding a epydoc or sphinx docstring for the attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently picked up a project from a few months ago. Went to
Recently i've picked up my EF 4.1 / MVC 3 project again and started
We recently attempted a large, cherry picked merge. First we did a full merge
Recently, I was writing a class in which I discovered that I could reduce
I recently picked up a copy of Applied Cryptography by Bruce Schneier and it's
I have a rather confusing issue. I've recently picked up some code I wrote
I've recently picked up PHP and it seems rather neat language enabling very quick
I've recently picked up renderscript and really loving it but the lack of documentation
I've recently upgraded from Grails 1.1 to Grails 1.1.1. I've updated my projects accordingly
I recently picked up the BigNerdRanch book on Cocoa for Mac OSX and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.