Skip to content

Commit

Permalink
Merge branch 'develop' into feature/rename-version-to-4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLL-Avaiga authored Jul 18, 2024
2 parents 724c44a + f987f22 commit 59ede06
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 83 deletions.
65 changes: 26 additions & 39 deletions taipy/config/config.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The default data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_data_node_from(
Expand Down Expand Up @@ -323,14 +322,13 @@ class Config:
`(Config.)set_default_data_node_configuration()^`).
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_csv_data_node(
Expand All @@ -357,14 +355,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new CSV data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_json_data_node(
Expand All @@ -390,13 +387,12 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new JSON data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_parquet_data_node(
Expand Down Expand Up @@ -434,14 +430,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new Parquet data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_excel_data_node(
Expand Down Expand Up @@ -469,14 +464,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new Excel data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_generic_data_node(
Expand Down Expand Up @@ -505,13 +499,12 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new Generic data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_in_memory_data_node(
Expand All @@ -534,14 +527,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new *in-memory* data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_pickle_data_node(
Expand All @@ -566,14 +558,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new pickle data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_sql_table_data_node(
Expand Down Expand Up @@ -624,14 +615,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new SQL data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_sql_data_node(
Expand Down Expand Up @@ -688,13 +678,12 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new SQL data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_mongo_collection_data_node(
Expand Down Expand Up @@ -737,14 +726,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new Mongo collection data node configuration.
"""
""" # noqa: E501

@classmethod
def configure_s3_object_data_node(
Expand Down Expand Up @@ -775,14 +763,13 @@ class Config:
The default value is `Scope.SCENARIO`.
validity_period (Optional[timedelta]): The duration since the last edit date for which the data node can be
considered up-to-date. Once the validity period has passed, the data node is considered stale and
relevant tasks will run even if they are skippable (see the
[Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
relevant tasks will run even if they are skippable (see the [Task configs page](../../userman/task-orchestration/scenario-config.md#from-task-configurations) for more details).
If *validity_period* is set to None, the data node is always up-to-date.
**properties (dict[str, any]): A keyworded variable length list of additional arguments.
Returns:
The new S3 object data node configuration.
"""
""" # noqa: E501

@staticmethod
def configure_task(
Expand Down
3 changes: 2 additions & 1 deletion taipy/config/stubs/generate_pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from pathlib import Path
from typing import List

_end_doc = re.compile(r'\"\"\"\s*(#\s*noqa\s*:\s*E501)?\s*\n')

def _get_function_delimiters(initial_line, lines):
begin = end = initial_line
Expand All @@ -28,7 +29,7 @@ def _get_function_delimiters(initial_line, lines):

if '"""' in lines[end + 1]:
while True:
if '"""\n' in lines[end]:
if _end_doc.search(lines[end]):
break
end += 1
return begin, end + 1
Expand Down
Loading

0 comments on commit 59ede06

Please sign in to comment.