- Create the following folders:
class C: | |
__match_args__ = ("__match_self_prop__",) | |
def __init__(self, x, y=42): | |
self.x = x | |
self.y = y | |
@property | |
def __match_self_prop__(self): | |
return self |
import argparse | |
import sys | |
# as seen in https://github.com/python/cpython/pull/29217 | |
def download(): | |
parser = argparse.ArgumentParser( | |
description="Download the provided URL (FTP/HTTP/HTTPS supported) " |
default_language_version: | |
python: python3.9 | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: 'v4.0.1' | |
hooks: | |
- id: mixed-line-ending | |
args: [ '--fix=lf' ] | |
- id: trailing-whitespace |