Socket
Socket
Sign inDemoInstall

type-check

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-check

Type check decorator for python


Maintainers
1

PyPI

Type Check

Type check decorator for python

Installation:

pip3 install type-check

Usage:

Import type_check decorator:

from type_check import type_check

Usage in function:

@type_check
def my_func(arg: type = default) -> return_type:
    return return_type()

At class function, specify type of self with base type, for example:

@type_check
def __init__(self: object, arg: type = default):
    pass

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc