Skip to content

Commit

Permalink
fix clippy and make tests meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 30, 2024
1 parent d5fb0cb commit f452453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ def prop(self) -> None:

@abc.abstractproperty
def prop2(self) -> None:
print("Override me")
return None

@types.DynamicClassAttribute
def prop3(self) -> None:
print("Gotta make this a multiline function for it to be a meaningful test")
return None

@enum.property
def prop4(self) -> None:
print("I've run out of things to say")
return None
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ fn unnecessary_return_none(checker: &mut Checker, decorator_list: &[Decorator],
}

/// Determine whether `decorator` is `@property`,
/// or another stdlib decorator similar to `@property.
/// or another stdlib decorator similar to `@property`.
///
/// TODO: be more principled here once we have type inference;
/// hardcoding these is a little hacky.
Expand Down

0 comments on commit f452453

Please sign in to comment.