kaxil commented on a change in pull request #8436:
URL: https://github.com/apache/airflow/pull/8436#discussion_r414125376



##########
File path: airflow/secrets/local_filesystem.py
##########
@@ -0,0 +1,266 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+"""
+Objects relating to retreiving connections and variables from local file
+"""
+import json
+import logging
+import os
+from collections import defaultdict
+from inspect import signature
+from json import JSONDecodeError
+from typing import Any, Dict, List, Optional, Set, Tuple
+
+from airflow.exceptions import AirflowException, AirflowFileParseException, 
FileSyntaxError
+from airflow.secrets.base_secrets import BaseSecretsBackend
+from airflow.utils.file import COMMENT_PATTERN
+from airflow.utils.log.logging_mixin import LoggingMixin
+
+log = logging.getLogger(__name__)
+
+
+def get_connection_parameter_names() -> Set[str]:
+    """Returns :class:`airflow.models.connection.Connection` constructor 
parameters."""
+    from airflow.models.connection import Connection
+
+    return {k for k in signature(Connection.__init__).parameters.keys() if k 
!= "self"}
+
+
+def _parser_env_file(file_path: str) -> Tuple[Dict[str, List[str]], 
List[FileSyntaxError]]:

Review comment:
       ```suggestion
   def _parse_env_file(file_path: str) -> Tuple[Dict[str, List[str]], 
List[FileSyntaxError]]:
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to