Skip to content

228 prevent two strands with the same name#257

Open
mobinano wants to merge 16 commits into
devfrom
228-prevent-two-strands-with-the-same-name
Open

228 prevent two strands with the same name#257
mobinano wants to merge 16 commits into
devfrom
228-prevent-two-strands-with-the-same-name

Conversation

@mobinano
Copy link
Copy Markdown

No description provided.

Comment thread nuad/constraints.py Outdated
@abstractmethod
def name(self) -> str:
pass
# @property
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not leave dead comments like this, just delete them.

Comment thread nuad/constraints.py Outdated

_name: str | None = None
name: str
"""Optional name of strand."""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name is not optional

Comment thread nuad/constraints.py Outdated
@@ -2666,7 +2666,7 @@ def name(self) -> str:
if self._name is None:
self._name = self.domain_names_concatenated()
return self._name
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there two return statements one after the other here?

Comment thread nuad/constraints.py Outdated
"""

_name: str | None = None
name: str
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be an error since name is being declared after vendor_fields, since non-optional fields need to precede optional fields

@dave-doty dave-doty marked this pull request as draft April 17, 2024 21:01
@dave-doty dave-doty marked this pull request as ready for review April 17, 2024 21:01
@dave-doty dave-doty changed the base branch from main to dev April 17, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants