sipa/model/user.py

Summary

Maintainability
A
3 hrs
Test Coverage

File user.py has 272 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from __future__ import annotations

import typing as t
# noinspection PyMethodMayBeStatic
from abc import ABCMeta, abstractmethod
Severity: Minor
Found in sipa/model/user.py - About 2 hrs to fix

    Function activate_network_access has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def activate_network_access(self, password, mac, birthdate, host_name):
    Severity: Minor
    Found in sipa/model/user.py - About 35 mins to fix

      Error: invalid syntax (<unknown>, line 143)</unknown>
      Open

              match val:
      Severity: Minor
      Found in sipa/model/user.py by radon

      We encountered an error attempting to analyze this line.

      There are no issues that match your filters.

      Category
      Status