You are provided with a code snippet that contains a comment block. The comment block states that permission is granted to deal with the software without restriction, subject to certain conditions. Your task is to implement a Python function that parses the permission details from the comment block and returns them as a list of strings.

You need to implement the following function:

```python
def parse_permissions(comment: str) -> List[str]:
    pass
```

**Input**
- A string `comment` (1 <= len(comment) <= 10^4) that represents the comment block in the code snippet. The comment block may contain multiple lines, and each line is terminated by a newline character (`\n`).

**Output**
- Returns a list of strings, where each string represents a permission detail.

**Note**
- A permission detail is defined by a line in the comment block that starts with a hash symbol ('#') and contains the word "Permission".
- The permission detail should include all the text from the line starting with the hash symbol ('#') until the end of the line, excluding any leading or trailing whitespace characters.

**Example**
```python
comment = '''
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
'''

output = parse_permissions(comment)
print(output)  # ['Permission is hereby granted, free of charge, to any person', 'Permission details explained here...']

```
user
Sure, I can help you implement the `parse_permissions` function in Python. Here's one way to do it:

```python
import re

def parse_permissions(comment: str) -> List[str]:
    if not comment.strip():
        return []  # If the comment is empty, return an empty list

    # Split the comment into lines
    lines = re.findall(r'\#\s+"[^\n]+",?', comment, re.S)

    # Convert the lines to a list
    lines = [line.strip(' \t#') for line in lines]

    # Extract the permissions
    permissions = [line for line in lines if line and line.startswith('Permission')]

    return permissions
```

Here's how this function works:

1. It first checks if the comment is empty. If it is, it returns an empty list.

2. It then uses a regular expression to find all lines in the comment that start with a "#" symbol and have "#Permission" inside some double quotes. The `re.S` flag is used to make sure it includes the newline characters in the findall() result.

3. It then loops through each line in the `lines` and checks if it's not empty and starts with "Permission". It returns the list of extracted permissions.

Note that this function does not include a check for the license details. You could add a check if you wanted.
assistant
You are provided with a code snippet that contains a comment block. The comment block states that permission is granted to deal with the software without restriction, subject to certain conditions. Your task is to implement a Python function that parses the permission details from the comment block and returns them as a list of strings.

You need to implement the following function:

```python
def parse_permissions(comment: str) -> List[str]:
    pass
```

**Input**
- A string `comment` (1 <= len(comment) <= 10^4) that represents the comment block in the code snippet. The comment block may contain multiple lines, and each line is terminated by a newline character (`\n`).

**Output**
- Returns a list of strings, where each string represents a permission detail.

**Note**
- A permission detail is defined by a line in the comment block that starts with a hash symbol ('#') and contains the word "Permission".
- The permission detail should include all the text from the line starting with the hash symbol ('#') until the end of the line, excluding any leading or trailing whitespace characters.

**Example**
```python
comment = '''
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
'''

output = parse_permissions(comment)
print(output)  # ['Permission is hereby granted, free of charge, to any person', 'Permission details explained here...']

```
user
Sure, here is a Python function that parses the permission details from the comment block and returns them as a list of strings:

```python
from typing import List

def parse_permissions(comment: str) -> List[str]:
    # Split the comment into lines
    lines = comment.split('\n')

    # Initialize an empty list to store the permission details
    permissions = []

    # Iterate over each line
    for line in lines:
        # Check if the line starts with '#' and contains 'Permission'
        if line.startswith('#') and 'Permission' in line:
            # Remove leading and trailing whitespace characters and append the line to the list
            permissions.append(line.strip())

    return permissions
```

This function works by splitting the input comment into lines, then iterating over each line. If a line starts with '#' and contains the word 'Permission', it is added to the list of permissions after removing leading and trailing whitespace characters. The function finally returns the list of permissions.
assistant