Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torchfix: Refactor ERROR_CODE to be consistent #46

Merged
merged 4 commits into from
Apr 22, 2024

Commits on Apr 22, 2024

  1. torchfix: Refactor ERROR_CODE to be consistent

    Refactors ERROR_CODE --> ERROR, introduces a new TorchError class that
    defines what an error is including its code + the message it's supposed
    to have since I found that most errors were defined by the Code at the
    top + a string message that was semi-hard to find amongst the code.
    
    This also makes it so that ERRORS needs to be a list instead of  being
    optionally a list or a value to make it more consistent.
    
    Signed-off-by: Eli Uriegas <[email protected]>
    seemethere committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    958e621 View commit details
    Browse the repository at this point in the history
  2. run black

    Signed-off-by: Eli Uriegas <[email protected]>
    seemethere committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    eb35567 View commit details
    Browse the repository at this point in the history
  3. fix unused import

    Signed-off-by: Eli Uriegas <[email protected]>
    seemethere committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    c478454 View commit details
    Browse the repository at this point in the history
  4. fix line length errors

    Signed-off-by: Eli Uriegas <[email protected]>
    seemethere committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    8f569ea View commit details
    Browse the repository at this point in the history