| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f6e8692 commit dd00bfc
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ repos: | |||
| 30 | 30 | - requests-toolbelt==1.0.0 | |
| 31 | 31 | files: 'gitlab/' | |
| 32 | 32 | - repo: https://github.com/pre-commit/mirrors-mypy | |
| 33 | - rev: v1.8.0 | ||
| 33 | + rev: v1.9.0 | ||
| 34 | 34 | hooks: | |
| 35 | 35 | - id: mypy | |
| 36 | 36 | args: [] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,8 @@ def __call__(self, chunk: Any) -> None: | |||
| 18 | 18 | ||
| 19 | 19 | def get_content_type(content_type: Optional[str]) -> str: | |
| 20 | 20 | message = email.message.Message() | |
| 21 | - message["content-type"] = content_type | ||
| 21 | + if content_type is not None: | ||
| 22 | + message["content-type"] = content_type | ||
| 22 | 23 | ||
| 23 | 24 | return message.get_content_type() | |
| 24 | 25 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ black==24.3.0 | |||
| 4 | 4 | commitizen==3.16.0 | |
| 5 | 5 | flake8==7.0.0 | |
| 6 | 6 | isort==5.13.2 | |
| 7 | - mypy==1.8.0 | ||
| 7 | + mypy==1.9.0 | ||
| 8 | 8 | pylint==3.1.0 | |
| 9 | 9 | pytest==8.0.2 | |
| 10 | 10 | responses==0.25.0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments