Skip to content

pygettext doesn't extract docstrings for functions with type annotated params #76403

@Tobotimus

Description

@Tobotimus
mannequin
BPO 32222
Nosy @serhiy-storchaka, @Tobotimus, @miss-islington, @iritkatriel
PRs
  • bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints #4745
  • [3.7] bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745) #5915
  • [3.6] bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745) #5916
  • Files
  • test_typehinted_funcs.py: Input file for pygettext to demonstrate behaviour
  • pygettext_output.pot: Output file from pygettext for test_typehinted_funcs.py
  • test_returntypehinted_funcs.py: Demonstrating behaviour with return type annotations
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2020-10-06.01:16:00.210>
    created_at = <Date 2017-12-05.10:36:15.662>
    labels = ['type-bug', '3.7']
    title = "pygettext doesn't extract docstrings for functions with type annotated params"
    updated_at = <Date 2020-10-06.01:16:00.210>
    user = 'https://github.com/Tobotimus'

    bugs.python.org fields:

    activity = <Date 2020-10-06.01:16:00.210>
    actor = 'methane'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2020-10-06.01:16:00.210>
    closer = 'methane'
    components = ['Demos and Tools']
    creation = <Date 2017-12-05.10:36:15.662>
    creator = 'Tobotimus'
    dependencies = []
    files = ['47316', '47317', '47318']
    hgrepos = []
    issue_num = 32222
    keywords = ['patch']
    message_count = 6.0
    messages = ['307652', '307654', '307791', '312967', '312970', '377943']
    nosy_count = 4.0
    nosy_names = ['serhiy.storchaka', 'Tobotimus', 'miss-islington', 'iritkatriel']
    pr_nums = ['4745', '5915', '5916']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32222'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Labels

    3.7 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions