What is type piracy and why should I avoid it?
masterType piracy occurs when a package adds methods to a function defined in a foreign package using only arguments that are also foreign to that function.
This is considered bad practice because it can cause non-deterministic behavior: the behavior of a dependency might change depending on whether your package is loaded or not. This makes code difficult to reason about and introduces bugs that are hard to track down.
For more detailed guidance, refer to the Julia style guide on avoiding type piracy.