Skip to content

Commit

Permalink
PEP style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jun 11, 2024
1 parent 1931d38 commit bc29633
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions inventree/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ def getAttachments(self):
model_id=self.pk
)


def uploadAttachment(self, attachment, comment=""):
"""Upload a file attachment against this model instance."""

Expand All @@ -504,7 +503,6 @@ def uploadAttachment(self, attachment, comment=""):
model_type=self.getModelType(),
model_id=self.pk
)


def addLinkAttachment(self, link, comment=""):
"""Add an external link attachment against this Object.
Expand Down
1 change: 0 additions & 1 deletion inventree/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def getPriceBreaks(self):
return SupplierPriceBreak.list(self._api, part=self.pk)



class ManufacturerPart(
inventree.base.AttachmentMixin,
inventree.base.BulkDeleteMixin,
Expand Down
1 change: 0 additions & 1 deletion inventree/part.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def getCategoryParameterTemplates(self, fetch_parent: bool = True) -> list:
)



class Part(
inventree.base.AttachmentMixin,
inventree.base.BarcodeMixin,
Expand Down
1 change: 0 additions & 1 deletion inventree/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import inventree.report



class PurchaseOrder(
inventree.base.AttachmentMixin,
inventree.base.MetadataMixin,
Expand Down
2 changes: 1 addition & 1 deletion test/test_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from test_api import InvenTreeTestCase # noqa: E402

from inventree.base import Attachment
from inventree.base import Attachment # noqa: E402
from inventree.company import SupplierPart # noqa: E402
from inventree.part import InternalPrice # noqa: E402
from inventree.part import (BomItem, Parameter, # noqa: E402
Expand Down

0 comments on commit bc29633

Please sign in to comment.