Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. 技术之美
  4. Python 静态类型检查器- Mypy

Python 静态类型检查器- Mypy

Scheduled Pinned Locked Moved 技术之美
2 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    digitalsatori
    管理员
    wrote on last edited by digitalsatori
    #1

    江湖流传“动态类型一时爽,代码重构火葬场”👿
    Python作为动态语言在定义变量、函数返回值、方法参数都不需要指定数据类型,开发起来觉得没有牵绊,很爽。但是这也往往导致了无从躲避的Runtime Error.

    Mypy是一个静态类型检查器,就是在你的代码执行前他可以通过类型推导配合你在代码中的类型标注检查可能的类型错误。让你的代码更加安全可靠。

    【上海先安科技】(tony AT openerp.cn)

    1 Reply Last reply
    1
    • 卓忆卓 Offline
      卓忆卓 Offline
      卓忆
      wrote on last edited by
      #2

      谢谢分享,言简意赅 👍

      恬淡

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Tags
      • Popular
      • Users
      • Groups