Skip to content

codeforreal1/python-typechecking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Type Checking in Python with ty

Run:

uv run ./src/<file>.py

Basic

Description Syntax
String str
Integer int
Float/Decimal float
Boolean bool
Bytes bytes
Void/Null None

Collection

Description Syntax
List List[T]
Dictionary Dict[K, V]
Set Set[T]
Tuple Tuple[T1, T2, ...]
Iterable Iterable[T]
Sequence Sequence[T]

Other

Description Syntax
Literal Literal[T]
Union Union[T1, T2, ...]
Optional Optional[T]
TypedDict TypedDict
Self Self
Final Final
Any Any

About

Type Checking in Python with ty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages