I modified a few things in the cpu.py file.
First, I either added or changed the return type hints of function signatures depending on the actual return type possible, Optional[some type], if the return type might be None in some cases.
Next, a few dangling return keywords were at the end of a function definition. As they do not serve any purpose, I removed them.
Hi!
I modified a few things in the
cpu.py
file. First, I either added or changed the return type hints of function signatures depending on the actual return type possible,Optional[some type]
, if the return type might beNone
in some cases.Next, a few dangling
return
keywords were at the end of a function definition. As they do not serve any purpose, I removed them.