Format: application/x-python-code
1 o
2
3 D'h� � @ s� d dl mZ d dlZd dlZd dlmZ ddlmZ ddl m
4 Z
5 ddlmZ ddl
6 mZ dd l
7 mZ dd
8 lmZ ejrAddlmZ G dd
9 � d
10 e�ZdS )� )�annotationsN)� timedelta� )�AppGroup)�current_app)�send_from_directory)� Blueprint)�BlueprintSetupState)� _sentinel)�Responsec sR e Zd Zdddddddefd#� fdd�
11 Zd$dd�Zd%dd�Z d&d'd!d"�Z� ZS )(r N�name�str�import_name�
12 static_folder�str | os.PathLike[str] | None�static_url_path�
13 str | None�template_folder�
14 url_prefix� subdomain�url_defaults�dict[str, t.Any] | None� root_path� cli_group�return�Nonec s4 t � �||||||||| |
15 �
16 t� | _| j| j_d S )N)�super�__init__r �clir )�selfr r r r r r r r r r �� __class__� �FC:\Users\shubh\Videos\agent\nova\Lib\site-packages\flask/blueprints.pyr s
17 �zBlueprint.__init__�filename�
18 int | Nonec C s0 t jd }|du rdS t|t�rt|�� �S |S )an Used by :func:`send_file` to determine the ``max_age`` cache
19 value for a given file path if it wasn't passed.
20
21 By default, this returns :data:`SEND_FILE_MAX_AGE_DEFAULT` from
22 the configuration of :data:`~flask.current_app`. This defaults
23 to ``None``, which tells the browser to use conditional requests
24 instead of a timed cache, which is usually preferable.
25
26 Note this is a duplicate of the same method in the Flask
27 class.
28
29 .. versionchanged:: 2.0
30 The default configuration is ``None`` instead of 12 hours.
31
32 .. versionadded:: 0.9
33 ZSEND_FILE_MAX_AGE_DEFAULTN)r �config�
34 isinstancer �int�
35 total_seconds)r r$ �valuer"