zoukankan      html  css  js  c++  java
  • Flask 2.0.1 changes

    Version 2.0.1

    Released 2021-05-21

    • Re-add the filename parameter in send_from_directory. The filename parameter has been renamed to path, the old name is deprecated. #4019

    • Mark top-level names as exported so type checking understands imports in user projects. #4024

    • Fix type annotation for g and inform mypy that it is a namespace object that has arbitrary attributes. #4020

    • Fix some types that weren’t available in Python 3.6.0. #4040

    • Improve typing for send_filesend_from_directory, and get_send_file_max_age#4044#4026

    • Show an error when a blueprint name contains a dot. The . has special meaning, it is used to separate (nested) blueprint names and the endpoint name. #4041

    • Combine URL prefixes when nesting blueprints that were created with a url_prefix value. #4037

    • Roll back a change to the order that URL matching was done. The URL is again matched after the session is loaded, so the session is available in custom URL converters. #4053

    • Re-add deprecated Config.from_json, which was accidentally removed early. #4078

    • Improve typing for some functions using Callable in their type signatures, focusing on decorator factories. #4060

    • Nested blueprints are registered with their dotted name. This allows different blueprints with the same name to be nested at different locations. #4069

    • register_blueprint takes a name option to change the (pre-dotted) name the blueprint is registered with. This allows the same blueprint to be registered multiple times with unique names for url_for. Registering the same blueprint with the same name multiple times is deprecated. #1091

    • Improve typing for stream_with_context#4052

  • 相关阅读:
    Flex 布局
    vue学习之用 Vue.js + Vue Router 创建单页应用的几个步骤
    vue学习起步:了解下
    vue学习一:新建或打开vue项目(vue-cli2)
    adb环境变量配置
    数据类型判断和数据类型转换代码工具
    日期工具集合
    postman变量的使用和设置
    浮点数运算和金额处理
    07- Linux常用命令
  • 原文地址:https://www.cnblogs.com/zyl007/p/14825506.html
Copyright © 2011-2022 走看看