This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 157400 - Hint for varible type does not work for class fields
Summary: Hint for varible type does not work for class fields
Status: CLOSED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-25 01:46 UTC by Tomas Mysik
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2009-01-25 01:46:53 UTC
Example:
----- >% -----
class AddressBook():
    def __init__(self, filename):
        """Address book"""
        assert filename != None
        self.filename = filename
        # @type self.addressbook dict
        self.addressbook = self.load()

----- >% -----

I tried:
# @type self.addressbook dict
as well as
# @type addressbook dict
both none works. Thanks a lot.

Product Version: NetBeans IDE Dev (Build 20090121120911)
Java: 1.6.0_11; Java HotSpot(TM) Server VM 11.0-b16
System: Linux version 2.6.28-gentoo-r1 running on i386; UTF-8; cs_CZ (nb)
Comment 1 Jenselme 2017-06-22 21:33:15 UTC
From what I understand, this is how Python is supposed to work. This may be fixed when we support type annotations from Python 3. Closing this for now.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:18 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.