radon-project / radon

The Radon Programming Language
https://radon-project.github.io
GNU General Public License v3.0
21 stars 2 forks source link

Add type annotations to `core/builtin_funcs.py` and `core/builtin_classes/base_classes.py` #132

Closed angelcaru closed 2 months ago

angelcaru commented 2 months ago

I'm not doing --strict.

Almas-Ali commented 2 months ago

You need to annotate the function arguments also.

angelcaru commented 2 months ago

Where?

Almas-Ali commented 2 months ago

Where?

Like this

def function(arg: str, arg2: int, ...) -> Any:
                 ^^^^       ^^^^^
angelcaru commented 2 months ago

Yes i know, which functions?

Almas-Ali commented 2 months ago

Everything!! In everywhere!!

angelcaru commented 2 months ago

All of the functions have type annotations in the files I touched