(check)
| 50 | """ |
| 51 | |
| 52 | def inner(check): |
| 53 | if not func_accepts_kwargs(check): |
| 54 | raise TypeError( |
| 55 | "Check functions must accept keyword arguments (**kwargs)." |
| 56 | ) |
| 57 | check.tags = tags |
| 58 | checks = ( |
| 59 | self.deployment_checks |
| 60 | if kwargs.get("deploy") |
| 61 | else self.registered_checks |
| 62 | ) |
| 63 | checks.add(check) |
| 64 | return check |
| 65 | |
| 66 | if callable(check): |
| 67 | return inner(check) |
nothing calls this directly
no test coverage detected