Skip to content

declaring exceptions in stubs #71

Closed
@matthiaskramm

Description

@matthiaskramm

Should methods in stubs be allowed to declare that they can throw exceptions?

When Jukka and I discussed this, we came up with the syntax ideas

def f():
  raise IOError()
  raise EOFError()

and

def f():
  typing.raises(IOError, EOFError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution: wontfixA valid issue that most likely won't be resolved for reasons described in the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions