Skip to content

Improve package's typing #1062

@bonjourmauko

Description

@bonjourmauko

Hi there!

Here is what I did:

I used a function expecting an int as argument, with a str argument.

Here is what I expected to happen:

To get an error from make check-types.

Here is what actually happened:

Nothing.

Context:

Type-hinting is an inexpensive way of :

  • Documenting the code
  • Building the documentation
  • Finding an correcting bugs —I've spotted quite some already
  • Helping contributors/maintainers enforce contracts, with zero runtime impact to reusers
  • Finally, they're a just part of the standard core of Python, like using a list or concatenating a string

TODO

Metadata

Metadata

Assignees

Labels

kind:docsAdd or improvement of documentationkind:roadmapA group of issues, constituting a delivery roadmap

Type

No type

Projects

Status

Roadmaps/Themes

Relationships

None yet

Development

No branches or pull requests

Issue actions